@charset "UTF-8";

:root {
  --radius: 0 0 20px 0;
  --radius-sub: 0 0 10px 0;
}
@media (max-width: 1023px) {
  :root {
    --radius: 0 0 10px 0;
    --radius-sub: 0 0 5px 0;
  }
}

.hero {
  background-color: #55a694;
}
.hero h2,
.hero h3 {
  color: #fff;
  text-align: center;
}
.hero h2 {
  margin-bottom: 15px !important;
}
main {
  background-color: #fff;
}
.bg {
  background: url(../images/gallery/bg_top.webp) left top / cover no-repeat;
  padding: 100px 0;
}
.bg_white {
  background-color: #fff;
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
  max-width: 940px;
  margin: 0 auto;
}
@media (max-width: 1023px) {
  .hero {
    margin-bottom: 0px;
  }
  .hero h2 {
    font-size: 1.6rem;
    margin: 0 auto 10px;
  }
  .hero h3 {
    font-size: 1rem;
  }
  .bg {
    padding: 50px 0;
  }
  .bg_white {
    max-width: 90%;
    padding: 20px;
  }
}
.detaile_hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto 30px;
}
.detaile_thumb {
  position: relative;
  width: 56.5476%;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  overflow: hidden;
}

.detaile_thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.detaile_thumb a > img:not(.icon_zoom) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.detaile_thumb img {
  border-radius: var(--radius);
}
.detaile_info_wrap {
  width: 41.0714%;
  background: url(../images/gallery/bg_datail.svg) center top / contain
    no-repeat;
  display: flex;
  align-items: center;
}
.detaile_info {
  font-family: 'noto-sans-cjk-jp', sans-serif;
  font-style: normal;
  font-weight: 500;
}
.detaile_info p {
  margin-left: 20px;
}
.detaile_ttl {
  font-weight: 800;
  color: #3e3a39;
  position: relative;
  font-size: 32px;
  line-height: 1em;
  padding: 20px 0 20px 20px;
  border-left: 1px dashed #3e3a39;
  border-bottom: 1px dashed #3e3a39;
  margin-bottom: 20px;
}
.detaile_type,
.detaile_office {
  background-color: #55a694;
  margin-bottom: 15px;
  border-radius: var(--radius-sub);
  justify-content: normal;
  align-items: center;
  width: 240px;
}

.detaile_type a,
.detaile_office a {
  display: flex;
  align-items: center;
}
.detaile_info .detaile_icon {
  width: 24px;
  height: 24px;
  padding-left: 1em;
  box-sizing: content-box;
}
.detaile_info a span {
  font-weight: 700;
  font-style: normal;
  color: #fff;
  font-size: 24px;
  padding-left: 1em;
  display: flex;
  align-items: center;
  width: 100%;
}
.detail_plan,
.detail_area {
  margin-left: 20px;
  font-size: 14px;
}
.detail_plan span,
.detail_area span {
  width: 7em;
  display: inline-block;
}

.no-result {
  text-align: center;
  font-weight: bold;
}
@media (max-width: 1023px) {
  .detaile_hero {
    flex-direction: column;
    max-width: 100%;
  }
  .detaile_thumb {
    width: 100%;
  }
  .detaile_info_wrap {
    width: 100%;
    margin-top: 30px;
  }
  .detaile_ttl {
    font-size: 18px;
    padding: 10px 0 10px 10px;
    margin-bottom: 20px;
  }

  .detaile_info p {
    margin-left: 10px;
    font-size: 14px;
  }
  .detaile_info a span {
    font-size: 16px;
    padding: 0 0.5em;
  }
  .detaile_info .detaile_icon {
    width: 18px;
    height: 18px;
    padding-left: 0.5em;
  }
  .detaile_type,
  .detaile_office {
    width: auto;
    display: inline-block;
  }
  .archive_list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}
.pagination {
  margin-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.pagination ul {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination li {
  display: block;
  background-color: #fff;
}

.pagination a,
.pagination span {
  display: block;
  min-width: 40px;
  padding: 10px 14px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}

.pagination .current {
  background: #55a694;
  color: #fff;
  border-color: #55a694;
  pointer-events: none;
}

.pagination .dots {
  border: none;
  background: transparent;
}

@media (max-width: 1023px) {
}

.btn_box {
  display: flex;
  max-width: 900px;
  margin: 50px auto 0;
  align-items: center;
  justify-content: center;
  gap: 0 40px;
}
.btn_box .print-btn,
.btn_box .top-btn {
  margin: 0;
}
.print-btn {
  font-family: 'montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #55a694;
  color: #fff;
  border-radius: var(--radius-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px auto 0;
  width: 300px;
  height: 60px;
}
.print-btn:hover {
  color: #fff;
  transition: 0.5s; /* マウスカーソルを載せるとき */
}
.printer_icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
.top-btn {
  font-family: 'montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #fff;
  color: #55a694;
  border: #55a694 1px solid;
  border-radius: var(--radius-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px auto 0;
  width: 300px;
  height: 60px;
  position: relative;
  padding-right: 20px;
}
@media (max-width: 1024px) {
  .btn_box {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    gap: 20px 0;
  }
  .print-btn,
  .top-btn {
    width: 200px;
    height: 40px;
    font-size: 16px;
  }
}
@media print {
  * {
    height: auto !important;
    min-height: auto !important;
  }
  .hero-body {
    padding: 20px 0 !important;
  }
  .hero {
    background-color: transparent !important;
  }
  .hero h2,
  .hero h3 {
    color: #000;
  }
  .hero h2 {
    font-size: 18px;
  }
  .hero h3 {
    font-size: 14px;
    display: none;
  }

  header,
  footer {
    display: none;
  }
  .print-btn,
  .btn_box,
  .pagination {
    display: none;
  }
  .bg {
    background: none;
    padding: 0px 0;
  }
  .bg_white {
    background-color: none;
    padding: 0px;
    border-radius: 0px;
    box-shadow: none;
    max-width: 90%;
    margin: 0 auto;
  }
  .detaile_hero {
    width: 100%;
    overflow: hidden;
    max-width: 100%;
    display: block;
    align-items: start !important;
  }
  .detaile_thumb {
    width: 50%;
    float: left;
  }
  .detaile_info_wrap {
    background: none;
    width: 48%;
    float: right;
    display: block !important;
    align-items: start !important;
  }
  .detaile_info a span {
    color: #55a694;
    font-size: 18px;
    padding-left: 0em;
  }

  .detaile_ttl {
    font-size: 20px;
    padding: 0;
    border-left: none;
    border-bottom: none;
    margin-bottom: 20px;
  }
  .detaile_type,
  .detaile_office {
    background-color: transparent;
    width: 100%;
    margin-left: 0px;
  }
  .detaile_info .detaile_icon {
    display: none;
  }
  .detail_plan,
  .detail_area {
    margin-left: 0px;
  }

  .archive_list {
    grid-template-columns: repeat(4, 1fr) !important;
    max-width: 100% !important;
    margin: 0 auto;
    overflow: hidden;
    width: 100% !important;
    justify-items: center; /* 横中央 */
    align-items: center; /* 縦中央 */
  }
  .archive_thumb {
    border-radius: 0px;
    box-shadow: none !important;
    width: 75% !important;
  }
  .archive_thumb .icon_zoom {
    display: none;
  }
  .subject-list .bg,
  .media-list .bg {
    min-height: auto !important;
  }
}

/*一覧ページ*/
.subject-list .bg,
.media-list .bg,
.office-list .bg {
  min-height: 100vh;
}
.archive_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.archive_thumb {
  cursor: pointer;
  border: 1px solid #ccc;
  display: block;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
  position: relative;
}
.archive_thumb img {
  border-radius: var(--radius);
}
.icon_zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  opacity: 0.8;
  filter: drop-shadow(3px 3px 5px #000);
}
@media (max-width: 1024px) {
  .subject-list .archive_list,
  .media-list .archive_list,
  .office-list .archive_list {
    max-width: 90%;
  }
}

/**モーダル*/
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: center; /* 横中央 */
  align-items: flex-start; /* center → flex-start */
  padding: 40px 20px;
  box-sizing: border-box;
  overflow-y: auto; /* 追加 */

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.image-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.image-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.image-modal__content {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin: auto;

  transform: translateY(20px) scale(0.97);
  opacity: 0;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease;

  padding: 30px;
  background: #fff;

  max-height: calc(100vh - 80px); /* 追加 */
  overflow-y: auto; /* 追加 */
}
.image-modal.is-open .image-modal__content {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.image-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease;
}

.js-prev,
.js-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.js-prev {
  left: 10px;
}
.js-next {
  right: 10px;
}

.image-modal__info {
  margin: 20px auto 0;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-pack: justify;
  align-items: center;
  justify-content: start; /*横方向の位置を調整*/
  font-size: 14px;
}
.image-modal__info h3,
.image-modal__info p {
  text-decoration: none;
  padding: 10px 15px;
  background-color: #55a694;
  color: #fff;
  line-height: 1em;
  box-sizing: border-box;
  border-right: 2px solid #fff;
  border-radius: var(--radius-sub);
}
.image-modal__info h3 a,
.image-modal__info p a {
  text-decoration: none;
  color: #fff;
}
.modal-subject_wrap {
  display: flex;
}

/*物件詳細用*/
.modal-close-btn {
  padding: 8px 15px;
  border: #55a694 2px solid;
  background-color: #fff;
  margin-left: auto;
  color: #55a694;
  line-height: 1em;
  box-sizing: border-box;
  border-radius: var(--radius-sub);
}
/*一覧用*/
.modal-close-btn.archive-close-btn {
  border-radius: 0 0 0 10px;
  margin-right: 2px;
}

.image-modal__info .modal-link {
  padding: 8px 15px;
  border: #55a694 2px solid;
  background-color: #fff;
  /* margin-left: auto; */
}
.image-modal__info .modal-link a {
  color: #55a694;
}
.image-modal__content,
.image-modal__image img {
  border-radius: var(--radius-sub);
}
.modal-break {
  display: none;
}
@media (max-width: 1023px) {
  .image-modal__content {
    width: 90%;
    padding: 20px;
  }
  .image-modal__info {
    margin: 10px auto 0;
    font-size: 12px;
    gap: 5px;
  }
  .image-modal__info h3,
  .image-modal__info p {
    padding: 5px 10px;
    border-right: none;
  }

  .modal-subject_wrap {
    gap: 5px;
  }

  .image-modal__info .modal-link {
    padding: 3px 8px;
    border: #55a694 1px solid;
    margin-left: 0;
  }
  .modal-break {
    display: block;
    flex-basis: 100%;
  }
  /*物件詳細用*/
  .modal-close-btn {
    padding: 4px 8px;
    border: #55a694 1px solid;
    margin-left: 0;
  }
  .modal-close-btn.archive-close-btn {
    border-radius: 0 0 0 5px;
  }
}

.plan_btn_wrap {
  margin-top: 10px;
  text-decoration: none;
  padding: 10px 15px;
  background-color: #c97985;
  color: #fff;
  line-height: 1em;
  box-sizing: border-box;
  border-right: 2px solid #fff;
  border-radius: var(--radius-sub);
  display: inline-block;
}

.plan-open-btn {
  text-decoration: none;
  color: #fff;
}

.plan-open-btn:hover {
  opacity: 0.7;
}
