/* コンテンツ上端の写真と見出し。本文の余白は既存のpage-shellを使用。 */
.gw-eye {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  margin: 0;
  background: #000;
  color: var(--white, #eeeeee);
}

.gw-eye > .gw-eye-photo,
.gw-eye > .gw-eye-text,
.gw-eye > .gw-eye-text > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border: 0;
}

.gw-eye > .gw-eye-photo {
  object-fit: cover;
  object-position: center center;
}

.gw-eye > .gw-eye-text {
  z-index: 1;
  pointer-events: none;
}

.gw-eye > .gw-eye-text > img {
  object-fit: contain;
}

.gw-eye .gw-eye-heading {
  position: absolute;
  z-index: 2;
  top: var(--gw-eye-title-top, 42px);
  left: 42px;
  right: 42px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.gw-eye-heading .page-label {
  margin: 0;
  font-family: var(--gw-eye-title-family, var(--font-en, sans-serif));
  font-size: var(--gw-eye-title-size, 25px);
  font-weight: var(--gw-eye-title-weight, 700);
  line-height: var(--gw-eye-title-line-height, 1.2);
  letter-spacing: var(--gw-eye-title-spacing, .05em);
}

.gw-eye-heading h1 {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.68;
}

/* トップの見出しは画面から隠し、見出し構造は保持。 */
.gw-eye--home .gw-eye-heading {
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html.gw-eye-js .gw-eye > .gw-eye-photo,
html.gw-eye-js .gw-eye > .gw-eye-text {
  opacity: 0;
}

html.gw-eye-js .gw-eye.is-ready > .gw-eye-photo {
  animation: gw-eye-fade 1.6s ease-out both;
}

html.gw-eye-js .gw-eye.is-ready > .gw-eye-text {
  animation: gw-eye-fade 1.4s ease-out 1.8s both;
}

@keyframes gw-eye-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 767px) {
  .gw-eye { aspect-ratio: 1 / 1; }
  .gw-eye .gw-eye-heading {
    top: 24px;
    left: 26px;
    right: 26px;
    gap: 6px 16px;
  }
  .gw-eye-heading .page-label { font-size: var(--gw-eye-title-size, 21px); }
  .gw-eye-heading h1 { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html.gw-eye-js .gw-eye > .gw-eye-photo,
  html.gw-eye-js .gw-eye > .gw-eye-text {
    opacity: 1;
    animation: none;
  }
}
