/* 2026-10-12: natural photography and responsive photo layouts. */
.photo-mobile-break { display: none; }
.photo-refresh .updated-photo,
.photo-refresh .tile:hover .updated-photo,
.photo-refresh .design-grid figure:hover .updated-photo {
  filter: none;
  transform: none;
}

.home-photo-refresh .photo-hero {
  min-height: 640px;
  height: min(62vw, 860px);
  max-height: none;
  align-items: flex-end;
}
.home-photo-refresh .photo-hero > img {
  object-position: center 48%;
  filter: none;
}
.home-photo-refresh .photo-hero::after {
  background: linear-gradient(0deg, rgba(8,7,6,.76) 0%, rgba(8,7,6,.35) 27%, transparent 57%);
  pointer-events: none;
}
.home-photo-refresh .photo-hero .hero-copy {
  width: min(calc(100% - 80px), 1240px);
  max-width: 1240px !important;
  padding: 0 0 48px;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.3);
}
.home-photo-refresh .photo-hero .hero-copy .eyebrow {
  margin-bottom: 16px;
}
.home-photo-refresh .photo-hero .hero-copy h1.hero-title {
  font-size: clamp(38px, 3.4vw, 55px) !important;
  line-height: 1.35 !important;
  margin-bottom: 18px;
}
.home-photo-refresh .photo-hero .hero-copy p {
  max-width: 600px;
  margin-bottom: 20px;
  color: #f5f1eb;
}

.home-photo-refresh .photo-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-photo-refresh .photo-gallery .tile {
  grid-column: auto;
  margin: 0;
  height: auto;
  aspect-ratio: 3 / 2;
}
.home-photo-refresh .photo-gallery .g1 {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.home-photo-refresh .photo-gallery .tile img {
  filter: none;
}

.home-photo-refresh .updated-design-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 22px;
}
.home-photo-refresh .updated-design-grid figure {
  margin: 0;
  min-width: 0;
}
.home-photo-refresh .updated-design-grid img,
.home-photo-refresh .art-photo .updated-photo,
.home-photo-refresh .updated-b2b-photos img,
.home-photo-refresh .updated-photo-pair img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.home-photo-refresh .updated-design-grid figcaption {
  padding-top: 14px;
  line-height: 1.8;
}
.home-photo-refresh .updated-design-grid .photo-detail {
  margin: 6px 0 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .02em;
  color: #6c6258;
}
.home-photo-refresh .updated-b2b-photos {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.home-photo-refresh .updated-photo-pair {
  align-items: start;
}
.home-photo-refresh .photo-pair-caption {
  grid-column: 1 / -1;
  font-size: 12px !important;
  line-height: 1.8;
  margin: 0;
  color: #bbb3a9;
}
.photo-refresh .photo-credit {
  font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .04em;
}
.partners-photo-refresh .partners-hero figure {
  background: transparent;
}
.partners-photo-refresh .partners-hero figure img {
  height: auto;
  aspect-ratio: auto;
  filter: none;
}
.partners-photo-refresh .partners-hero figcaption {
  margin-top: 10px;
  color: #817970;
}
.living-photo-refresh .hero-photo img,
.living-photo-refresh .photo img,
.living-photo-refresh .beauty-photo img,
.living-photo-refresh .space-grid .photo img {
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
.living-photo-refresh .hero-photo {
  width: min(100%, 1440px);
  margin-inline: auto;
}

/* Constrain existing fixed-line headings to their actual columns. */
.home-photo-refresh .before-after-head h3 {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-wrap: balance;
}
@media (min-width: 901px) {
  .home-photo-refresh .section .two h2 {
    font-size: clamp(28px, 3.25vw, 42px) !important;
  }
  .home-photo-refresh #case .two h2 {
    font-size: clamp(28px, 3.25vw, 42px) !important;
  }
  .partners-photo-refresh .partners-hero h1 {
    font-size: clamp(32px, 3.1vw, 42px) !important;
    line-height: 1.4 !important;
  }
  .partners-photo-refresh p.pc-revision .pc-line {
    white-space: normal !important;
  }
}
.home-photo-refresh .art-feature h2 {
  font-size: clamp(26px, 2.7vw, 36px) !important;
}
.home-photo-refresh .art-feature h2 span {
  white-space: normal !important;
}

@media (max-width: 900px) {
  .home-photo-refresh .art-space .art-feature,
  .home-photo-refresh .before-after-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .home-photo-refresh .photo-hero {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    background: #181613;
  }
  .home-photo-refresh .photo-hero > img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .home-photo-refresh .photo-hero::after { display: none; }
  .home-photo-refresh .photo-hero .hero-copy {
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin: 0 24px !important;
    padding: 30px 0 38px !important;
  }
  .home-photo-refresh .photo-hero .hero-copy h1.hero-title {
    font-size: clamp(27px, 5.2vw, 40px) !important;
    line-height: 1.45 !important;
    padding: 0 !important;
    margin: 0 0 18px !important;
    width: auto !important;
    max-width: 100% !important;
  }
  .home-photo-refresh .photo-hero .hero-title .hero-line1,
  .home-photo-refresh .photo-hero .hero-title .hero-line2 {
    display: inline !important;
    visibility: visible;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    white-space: normal !important;
    letter-spacing: -.025em !important;
  }
  .home-photo-refresh .photo-hero .hero-title .hero-line1::before,
  .home-photo-refresh .photo-hero .hero-title .hero-line1::after,
  .home-photo-refresh .photo-hero .hero-title .hero-line2::before {
    content: none !important;
    display: none !important;
  }
  .home-photo-refresh .photo-hero .desktop-break { display: none !important; }
  .home-photo-refresh .photo-hero .photo-mobile-break { display: block; }
}
@media (max-width: 700px) {
  .home-photo-refresh .container {
    width: calc(100% - 48px) !important;
    max-width: calc(100% - 48px) !important;
    margin-left: 24px !important;
    margin-right: 24px !important;
    padding-right: 0 !important;
  }
  .home-photo-refresh .container > * {
    min-width: 0;
  }
  .partners-photo-refresh .smartphone-manual-lines > span {
    white-space: normal !important;
  }
  .home-photo-refresh .photo-gallery,
  .home-photo-refresh .updated-design-grid,
  .home-photo-refresh .updated-photo-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .home-photo-refresh .photo-gallery .g1 {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
  .home-photo-refresh .updated-photo-pair { gap: 12px; }
  .home-photo-refresh .photo-hero .hero-copy p {
    padding-right: 0 !important;
  }
}
@media (max-width: 400px) {
  .home-photo-refresh .section h2 {
    font-size: 25px !important;
  }
  .home-photo-refresh .art-feature h2 {
    font-size: 23px !important;
    white-space: normal !important;
  }
  .partners-photo-refresh .partners-collab-title,
  .partners-photo-refresh .partners-position-title.role-mobile-title {
    font-size: 21px !important;
  }
}
@media (max-width: 380px) {
  .partners-photo-refresh .partners-position-title.role-mobile-title {
    font-size: 19px !important;
  }
}
