.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.value-grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-top: 3px solid var(--blue);
  background: #fff;
  box-shadow: 0 10px 34px rgba(27, 68, 89, .09);
}

.value-copy {
  min-height: 260px;
  padding: 32px;
}

.value-copy b {
  color: var(--blue);
  font-family: Georgia, serif;
}

.value-copy h3 {
  margin: 22px 0 12px;
  font-size: 1.25rem;
}

.value-copy p {
  margin: 0;
}

.value-grid img {
  width: 100%;
  height: 260px;
  margin-top: auto;
  object-fit: cover;
}

.intro {
  position: relative;
  min-height: clamp(560px, 62vw, 760px);
  padding-top: 0;
  padding-bottom: 0;
  background: url("assets/image-01.webp") center / cover no-repeat;
}

.intro-content {
  position: relative;
  min-height: inherit;
  max-width: var(--max);
  margin: 0 auto;
}

.intro .section-head {
  position: absolute;
  top: 9%;
  left: 52%;
  width: 45%;
  margin: 0;
}

.intro .section-head h2 {
  font-size: clamp(30px, 3.1vw, 48px);
}

.intro-text {
  position: absolute;
  right: 0;
  bottom: 6%;
  width: 48%;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .76);
}

.intro-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.feature-list article {
  grid-template-columns: 64px minmax(0, 1fr) minmax(360px, 45%);
  gap: 32px;
  padding: 42px 0;
}

.feature-list img {
  width: 100%;
  height: clamp(230px, 25vw, 340px);
  object-fit: contain;
  background: #fff;
}

.feature-copy h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.place-grid {
  gap: 28px;
}

.place-grid-main {
  margin-bottom: 28px;
}

.place-grid-sub {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.place-grid-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.places-secondary .place-grid.place-grid-pair article > img {
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: contain;
}

@media (max-width: 760px) {
  .place-grid.place-grid-pair { grid-template-columns: 1fr; }
}

.place-grid article {
  padding-bottom: 0;
  overflow: hidden;
}

.place-grid article > img,
.place-grid article > .placeholder {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.place-grid-sub article > .placeholder {
  height: 280px;
}

.place-copy {
  min-height: 155px;
  padding: 24px 28px 26px;
}

.place-copy h3,
.place-copy p {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.place-copy h3 {
  margin-top: 0;
}

.mri {
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  align-items: center;
}

.mri-materials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .3);
}

.mri-materials p {
  margin: 0;
  font-size: .9rem;
}

.mri-illustration {
  margin: 0;
  padding: 14px;
  background: #fff;
}

.mri-illustration img {
  width: 100%;
  height: auto;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid .placeholder {
  height: 340px;
}

.spec-wrap {
  display: block;
  max-width: 920px;
}

.spec dl div {
  grid-template-columns: 210px 1fr;
  align-items: start;
}

.spec dd small {
  display: inline-block;
  margin-top: 6px;
  color: #277ca9;
  font-size: .9rem;
  font-weight: 700;
}

.faq details {
  margin-bottom: 12px;
  border: 1px solid var(--line);
}

/* P1・P2：画像と表示方法の入れ替え */
.hero {
  position: relative;
  display: block;
  max-width: none;
  min-height: clamp(650px, calc(100svh - 76px), 880px);
  background: url("assets/image-01.webp") center center / cover no-repeat;
}

.hero::before {
  content: none;
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero .eyebrow {
  position: absolute;
  top: 4%;
  left: 52.5%;
  margin: 0;
  color: #fff;
  font-size: clamp(13px, 1.1vw, 17px);
  text-shadow: 0 1px 4px rgba(21, 71, 98, .32);
}

.hero h1 {
  position: absolute;
  top: 9%;
  left: 52.5%;
  max-width: 45%;
  margin: 0;
  font-size: clamp(43px, 4.2vw, 72px);
  line-height: 1.42;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .36);
}

.hero h1 .accent { color: #285b9c; }

.hero .lead {
  position: absolute;
  right: 8.5%;
  bottom: 15.5%;
  width: min(33%, 540px);
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .74);
  color: #24343c;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.65;
}

.hero-facts {
  position: absolute;
  right: 7.5%;
  bottom: 4.5%;
  width: min(35%, 570px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  border: 0;
}

.hero-facts li {
  min-height: 58px;
  padding: 0 10px 0 18px;
  border-left: 8px solid #FF7F50;
}

.hero-facts strong {
  color: #203b4b;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .72);
}

.intro {
  min-height: 0;
  padding: 110px max(24px, calc((100% - var(--max))/2));
  background: var(--pale);
}

.intro-content {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  min-height: 0;
}

.intro .section-head,
.intro-text {
  position: static;
  width: auto;
}

.intro .section-head {
  margin-bottom: 28px;
}

.intro .section-head h2 span {
  display: block;
  white-space: nowrap;
}

.intro-text {
  padding: 0;
  background: transparent;
}

.intro-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(27, 68, 89, .14);
}

.intro-media img {
  width: 100%;
  height: clamp(380px, 40vw, 560px);
  object-fit: cover;
}

.intro-media figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, .84);
  font-size: 11px;
}

/* 設置イメージを2画面に分割し、画像エリアを拡大 */
.places-primary,
.places-secondary {
  min-height: min(900px, 100svh);
}

.places-primary {
  padding-bottom: 120px;
}

.places-secondary {
  padding-top: 100px;
  background: #f7fbfd;
}

.places-primary .place-grid-main article > img,
.places-primary .place-grid-main article > .placeholder {
  height: clamp(420px, 38vw, 560px);
}

.places-secondary .place-grid-sub article > img,
.places-secondary .place-grid-sub article > .placeholder {
  height: clamp(340px, 29vw, 440px);
}

/* 画像ライブラリーの拡大表示 */
.gallery-grid img {
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-grid img:hover,
.gallery-grid img:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(20, 59, 80, .2);
  outline: 3px solid rgba(76, 168, 221, .5);
  outline-offset: 2px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: safe center;
  overflow: auto;
  padding: 5vh 5vw;
  background: rgba(7, 27, 38, .9);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(0, 0, 0, .38);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

/* 電話番号・メールアドレスのみの問い合わせ欄 */
.contact-simple {
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
}

.contact-simple .contact-intro h2 {
  margin-bottom: 0;
}

.contact-methods {
  display: grid;
  gap: 18px;
}

.contact-method {
  display: block;
  padding: 28px 32px;
  border-left: 4px solid var(--blue);
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 65, 84, .08);
  text-decoration: none;
}

.contact-method small,
.contact-method strong {
  display: block;
}

.contact-method small {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.contact-method strong {
  color: var(--deep);
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .value-grid,
  .place-grid-sub,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 0;
    padding: 78px 24px;
  }

  .intro .section-head {
    padding: 0;
    background: transparent;
  }

  .intro .section-head h2 {
    font-size: clamp(26px, 5vw, 38px);
  }

  .intro-text {
    width: auto;
  }

  .hero { min-height: 720px; background-position: 42% center; }
  .hero-copy { position: absolute; width: auto; padding: 0; }
  .hero .eyebrow { top: 5%; left: 46%; }
  .hero h1 { top: 10%; left: 46%; max-width: 51%; font-size: clamp(36px, 6vw, 52px); }
  .hero .lead { right: 4%; bottom: 17%; width: 51%; }
  .hero-facts { right: 4%; bottom: 5%; width: 53%; }
  .intro-content { grid-template-columns: 1fr; }
  .intro-media img { height: min(70vw, 520px); }

  .value-copy {
    min-height: auto;
  }

  .feature-list article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .feature-list img {
    grid-column: 2;
    height: 300px;
  }

  .mri {
    grid-template-columns: 1fr;
  }

  .places-primary,
  .places-secondary {
    min-height: 0;
  }

  .places-primary .place-grid-main article > img,
  .places-primary .place-grid-main article > .placeholder,
  .places-secondary .place-grid-sub article > img,
  .places-secondary .place-grid-sub article > .placeholder {
    height: min(65vw, 440px);
  }

  .contact-simple {
    grid-template-columns: 1fr;
  }

  .place-grid article > img,
  .place-grid article > .placeholder,
  .place-grid-sub article > .placeholder {
    height: 320px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 760px;
    background-position: 35% center;
  }
  .hero .eyebrow { top: 4%; right: 20px; left: 20px; text-align: right; }
  .hero h1 {
    top: 9%;
    right: 18px;
    left: 18px;
    max-width: none;
    font-size: clamp(31px, 9vw, 40px);
    text-align: right;
  }
  .hero .lead {
    right: 14px;
    bottom: 20%;
    width: calc(100% - 28px);
    padding: 11px 13px;
    font-size: 15px;
  }
  .hero-facts {
    right: 14px;
    bottom: 4%;
    width: calc(100% - 28px);
    gap: 5px;
  }
  .hero-facts li { padding: 3px 5px 3px 9px; border-left-width: 5px; }
  .hero-facts strong { font-size: 13px; }
  .intro .section-head h2 { font-size: clamp(21px, 6.3vw, 28px); }
  .intro-media img { height: 82vw; min-height: 300px; }
  .places-primary,
  .places-secondary { padding-top: 72px; padding-bottom: 72px; }
  .contact-method { padding: 22px 20px; }
  .contact-method strong { font-size: clamp(19px, 6.3vw, 28px); }
}

@media (max-width: 560px) {
  .feature-list article {
    grid-template-columns: 1fr;
  }

  .feature-list img {
    grid-column: 1;
    height: 250px;
  }

  .mri-materials,
  .mri-features {
    grid-template-columns: 1fr;
  }

  .mri-features article:last-child {
    grid-column: auto;
  }

  .spec dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* 第1段階の最終掲載画像：背景以外は全体を表示して欠けを防ぐ */
.gallery-grid img { height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.intro-media img,
.value-grid img,
.place-grid article > img {
  object-fit: contain;
  background: #fff;
}

/* 修正内容全般⑤：設置例の注記・問い合わせ案内 */
.place-copy { position: relative; }
.installation-caption {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 12px);
  color: #444;
  background: rgba(255, 255, 255, .84);
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
}
.contact-department { margin: 48px 0 0; font-weight: 700; }
.contact-guidance { grid-column: 1 / -1; margin: 0; }
.contact-method { background: #f2f8fc; }
.contact-catalog { background: #fff0e6; border-left-color: #d97a45; }
.contact-method:hover, .contact-method:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.contact-catalog:hover, .contact-catalog:focus-visible { outline-color: #d97a45; }
@media (max-width: 900px) {
  .contact-department { margin-top: 24px; }
}

/* 修正内容全般⑥ */
.places-secondary .installation-caption {
  top: 4px;
  bottom: auto;
  right: 28px;
  padding: 0;
  background: transparent;
  color: #444;
}
.contact-simple {
  background: linear-gradient(120deg, #f0f8f5 0%, #edf7fc 65%, #f8f5ee 100%);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  column-gap: 64px;
  row-gap: 36px;
  padding-top: 80px;
  padding-bottom: 64px;
}
.contact-simple .contact-intro { text-align: center; }
.contact-simple .contact-intro h2 {
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.65;
  margin: 20px 0 0;
  letter-spacing: .01em;
}
.contact-simple .contact-department {
  display: inline-block;
  margin: 32px 0 0;
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(255,255,255,.75);
  color: #3d6866;
  font-size: 16px;
}
.contact-simple .contact-methods { gap: 14px; min-width: 0; }
.contact-simple .contact-method {
  position: relative;
  border: 1px solid #c9e2e7;
  border-radius: 18px;
  padding: 22px 28px;
  background: #f5fbff;
  box-shadow: 0 6px 20px rgba(36,80,92,.05);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.contact-simple .contact-catalog {
  background: #fff3e5;
  border-color: #eacdad;
}
.contact-simple .contact-method small { color: #526e78; margin-bottom: 6px; }
.contact-simple .contact-method strong {
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.5;
}
.contact-simple .contact-catalog strong { color: #80532c; }
.contact-simple .contact-method:hover {
  box-shadow: 0 9px 24px rgba(36,80,92,.12);
  border-color: #82b6c5;
}
.contact-simple .contact-catalog:hover { border-color: #ce9d6c; }
.contact-simple .contact-guidance {
  text-align: center;
  color: #3e626b;
  line-height: 1.9;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,.65);
  font-size: 16px;
}
@media (max-width: 900px) {
  .contact-simple { grid-template-columns: 1fr; gap: 28px; padding-top: 64px; padding-bottom: 56px; }
  .contact-simple .contact-methods { width: 100%; max-width: 620px; margin: 0 auto; }
  .contact-simple .contact-department { margin-top: 20px; }
}
@media (max-width: 560px) {
  .contact-simple .contact-method { padding: 20px; border-radius: 14px; }
  .contact-simple .contact-method strong { font-size: clamp(18px, 5.5vw, 25px); }
  .contact-simple .contact-guidance { font-size: 14px; padding: 18px; }
}
