@charset "utf-8";

.page-gallery .page-hero,
.page-gallery-detail .page-hero {
  --page-hero-image: url("../images/about-hero-building-20260613-v2.jpg");
  --page-hero-position: center;
}

.page-online .page-hero {
  --page-hero-image: url("../images/page-heroes/page-hero-online-20260615.png");
  --page-hero-position: center;
}

.gallery-board {
  padding: 92px 0;
  background: var(--color-page);
}

.gallery-board--detail {
  background: #ffffff;
}

.gallery-board__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.gallery-board__eyebrow,
.estimate-layout__eyebrow {
  margin: 0 0 10px;
  color: var(--color-green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-board__title {
  margin: 0;
  color: var(--color-text);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
}

.gallery-board__desc {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.75;
}

.gallery-board__summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.gallery-board__summary a,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-decoration: none;
}

.gallery-board__summary a {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.gallery-board__summary a:hover,
.gallery-board__summary a.is-active {
  color: #ffffff;
  background: var(--color-forest);
  border-color: var(--color-forest);
}

.gallery-board__summary em {
  margin-left: 4px;
  font-style: normal;
  font-size: 12px;
  opacity: 0.82;
}

.gallery-board__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 42px;
  opacity: 1;
  transition: opacity 180ms ease;
}

.gallery-board__grid.is-loading {
  opacity: 0.4;
}

.gallery-board__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(10, 54, 34, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.gallery-board__card:hover {
  transform: translateY(-5px);
  border-color: rgba(106, 155, 50, 0.5);
  box-shadow: 0 16px 36px rgba(10, 54, 34, 0.12);
}

.gallery-board__card figure {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef3eb;
}

.gallery-board__card img,
.gallery-detail__media img,
.gallery-detail__photo-card img,
.photo-compare__image img,
.scm-file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-board__card img {
  transition: transform 420ms ease;
}

.gallery-board__card:hover img {
  transform: scale(1.06);
}

.gallery-board__badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(10, 54, 34, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.gallery-board__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.gallery-board__meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.gallery-board__card h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.42;
}

.gallery-board__card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.72;
}

.gallery-board__actions,
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pagination {
  margin-bottom: 28px;
}

.pagination a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 900;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.pagination a:hover,
.pagination a.is-active {
  color: #ffffff;
  background: var(--color-forest);
  border-color: var(--color-forest);
}

.pagination a.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.gallery-board__no-data,
.gallery-detail__empty {
  grid-column: 1 / -1;
  padding: 72px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.gallery-board__no-data h3,
.gallery-detail__empty h2 {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 900;
}

.gallery-board__no-data p,
.gallery-detail__empty p {
  margin: 0 0 22px;
  color: var(--color-muted);
}

.gallery-detail {
  opacity: 1;
  transition: opacity 180ms ease;
}

.gallery-detail.is-loading {
  opacity: 0.4;
}

.gallery-detail__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.gallery-detail__back,
.gallery-detail__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 900;
}

.gallery-detail__back {
  color: var(--color-text);
}

.gallery-detail__contact {
  padding: 10px 16px;
  color: #ffffff;
  background: var(--color-forest);
}

.gallery-detail__header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.gallery-detail__category {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  color: var(--color-forest);
  background: var(--color-green-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.gallery-detail__title {
  margin: 0;
  color: var(--color-text);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.22;
}

.gallery-detail__lead {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.75;
}

.gallery-detail__meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.gallery-detail__meta-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  color: var(--color-muted);
  background: var(--color-page);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
}

.gallery-detail__meta-item strong {
  color: var(--color-text);
}

.gallery-detail__media {
  margin: 34px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef3eb;
  border-radius: 8px;
}

.gallery-detail__body,
.gallery-detail__facts,
.gallery-detail__photo-grid {
  margin-top: 34px;
}

.gallery-detail__body h3,
.gallery-detail__facts h3,
.gallery-detail__photo-grid h3 {
  margin: 0 0 16px;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 900;
}

.gallery-detail__content {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.85;
}

.gallery-detail__content p {
  margin: 0 0 14px;
}

.gallery-detail__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-detail__fact-group {
  padding: 24px;
  background: var(--color-page);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.gallery-detail__fact-group h3 {
  font-size: 19px;
}

.gallery-detail__fact-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-detail__fact-group li {
  position: relative;
  padding-left: 16px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.65;
}

.gallery-detail__fact-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
}

.gallery-detail__photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery-detail__photo-grid h3 {
  grid-column: 1 / -1;
}

.gallery-detail__photo-card,
.photo-compare {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.gallery-detail__photo-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
}

.gallery-detail__photo-card figcaption,
.photo-compare__caption {
  padding: 14px 16px;
  color: var(--color-text);
  font-weight: 900;
}

.photo-compare {
  grid-column: 1 / -1;
  padding: 18px;
}

.photo-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.photo-compare__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #eef3eb;
}

.photo-compare__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(5, 22, 34, 0.78);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.gallery-detail__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 42px;
}

.gallery-detail__nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-page);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.gallery-detail__nav span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.gallery-detail__nav strong {
  font-size: 16px;
  line-height: 1.45;
}

.estimate-section {
  padding: 92px 0;
}

.estimate-layout {
  display: block;
  max-width: var(--container);
  margin: 0 auto;
}

.estimate-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 10px;
}

.estimate-header__title {
  margin: 0 0 12px 0;
  color: var(--color-text);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.estimate-header__desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.estimate-form {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(10, 54, 34, 0.06);
}

.estimate-guide-list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.estimate-guide-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: var(--color-page);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.estimate-guide-list strong {
  color: var(--color-green);
  font-size: 13px;
  font-weight: 900;
}

.estimate-guide-list span {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.estimate-form {
  display: grid;
  gap: 24px;
  padding: 32px;
}

.estimate-form__section {
  display: grid;
  gap: 18px;
}

.estimate-form__section-title {
  margin: 0;
  color: var(--color-text);
  font-size: 21px;
  font-weight: 900;
}

.estimate-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-section__field {
  display: grid;
  gap: 8px;
}

.contact-section__field--full {
  grid-column: 1 / -1;
}

.contact-section__field label,
.estimate-form__privacy-title {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 900;
}

.required-dot {
  margin-left: 4px;
  color: var(--color-green);
  font-size: 12px;
  font-weight: 900;
}

.field-note {
  margin-left: 4px;
  color: var(--color-muted);
  font-size: 12px;
}

.contact-section__field input,
.contact-section__field select,
.contact-section__field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.contact-section__field textarea {
  height: 150px;
  resize: vertical;
}

.contact-section__field input[type="date"] {
  position: relative;
  cursor: pointer;
}

.contact-section__field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.contact-section__field input:focus,
.contact-section__field select:focus,
.contact-section__field textarea:focus,
.estimate-form__privacy-box:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(106, 155, 50, 0.14);
}

.estimate-form__file-list,
.scm-hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.scm-file-uploader {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 22px;
  text-align: left;
  background: var(--color-page);
  border: 1px dashed rgba(106, 155, 50, 0.55);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.scm-file-uploader:hover {
  background-color: var(--color-green-soft);
  border-color: var(--color-green);
  box-shadow: 0 4px 14px rgba(10, 54, 34, 0.05);
}

.scm-file-uploader__title {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 900;
}

.scm-file-uploader__subtext {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.scm-file-preview-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.scm-file-preview-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.scm-file-preview-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(10, 54, 34, 0.08);
}

.scm-file-preview-item__delete {
  position: absolute;
  right: 6px;
  top: 6px;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(5, 22, 34, 0.76);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.scm-file-preview-item__delete:hover {
  background-color: #ff3b30;
  transform: scale(1.1);
}

.estimate-form__privacy {
  display: grid;
  gap: 12px;
}

.estimate-form__privacy-box {
  overflow: auto;
  height: 168px;
  padding: 18px;
  color: var(--color-muted);
  background: var(--color-page);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.estimate-form__privacy-content {
  font-size: 14px;
  line-height: 1.72;
}

.estimate-form__privacy-content p {
  margin: 0 0 10px;
}

.estimate-form__privacy-label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--color-text);
  font-weight: 800;
}

.estimate-form__privacy-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-green);
}

.estimate-form__submit {
  display: flex;
  justify-content: center;
}

.estimate-form__submit .button {
  padding: 16px 48px;
  font-size: 17px;
}

.form-message {
  margin: 0;
  padding: 14px 16px;
  color: var(--color-text);
  background: var(--color-green-soft);
  border: 1px solid rgba(106, 155, 50, 0.35);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.55;
  animation: formMessageShow 320ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.form-message.is-error {
  color: #8b1f1f;
  background: #fff3f0;
  border-color: #f1c5bc;
  animation: formMessageShow 320ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes formMessageShow {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1040px) {
  .gallery-board__head,
  .estimate-layout,
  .gallery-detail__facts {
    grid-template-columns: 1fr;
  }

  .gallery-board__summary {
    justify-content: flex-start;
  }

  .gallery-board__grid {
    grid-template-columns: 1fr 1fr;
  }

  .estimate-layout__aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .gallery-board,
  .estimate-section {
    padding: 64px 0;
  }

  .gallery-board__title,
  .gallery-detail__title,
  .estimate-header__title,
  .estimate-layout__aside h2 {
    font-size: 26px;
  }

  .estimate-header__desc {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .gallery-board__grid,
  .estimate-form__grid,
  .gallery-detail__photo-grid,
  .gallery-detail__nav,
  .photo-compare__grid {
    grid-template-columns: 1fr;
  }

  .gallery-detail__toolbar,
  .estimate-form__submit {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-detail__contact,
  .gallery-detail__back,
  .estimate-form__submit .button {
    width: 100%;
  }

  .estimate-layout__aside,
  .estimate-form {
    padding: 24px;
  }

  .scm-file-preview-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 460px) {
  .gallery-board__summary a {
    width: 100%;
  }

  .scm-file-preview-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
