/* Hero */
.hero {
  position: relative;
  margin-top: 0;
  padding-top: calc(var(--header-height) - 8px);
  overflow: visible;
}

.hero__visual {
  position: relative;
  width: min(100% - clamp(32px, 8vw, 112px), var(--container-width) + 80px);
  margin-inline: auto;
  margin-top: 0;
  overflow: visible;
}

.hero__visual > img:first-child {
  width: 100%;
  /* 高さは制限しつつ、下端を基準にトリミング（上が切れる） */
  height: min(70vh, 760px);
  min-height: 320px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.hero__badge {
  position: absolute;
  top: clamp(-36px, -4vw, -16px);
  left: clamp(-20px, -2vw, -8px);
  width: clamp(128px, 18vw, 200px);
  z-index: 2;
  pointer-events: none;
  visibility: hidden;
  filter:
    drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 22px rgba(93, 163, 137, 0.65));
  transform-origin: center center;
}

.hero__badge--ready {
  visibility: visible;
  animation:
    badge-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both,
    badge-float 3.2s ease-in-out 1.2s infinite;
}

.hero__badge--floating {
  position: fixed;
  z-index: 110;
}

.hero__badge--offscreen {
  visibility: hidden;
}

.hero__badge img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.hero__badge::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 6px rgba(93, 163, 137, 0.2);
  z-index: 0;
  animation: badge-ring 2.8s ease-in-out infinite;
  pointer-events: none;
}

.hero__badge::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(93, 163, 137, 0.35) 38%,
    transparent 68%
  );
  z-index: -1;
  animation: badge-glow 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes badge-in {
  from {
    opacity: 0;
    transform: scale(0.55) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes badge-float {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) scale(1.06) rotate(2deg);
  }
}

@keyframes badge-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes badge-ring {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.hero__news {
  display: grid;
  grid-template-columns: 220px 1fr;
  width: min(100% - clamp(32px, 8vw, 112px), var(--container-width) + 80px);
  margin-inline: auto;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-gray-200);
  border-top: none;
}

.hero__news-meta {
  padding: 20px 24px;
  border-right: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.hero__news-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--color-green);
}

.hero__news-date {
  font-size: 0.75rem;
  color: var(--color-gray-600);
  line-height: 1.5;
}

.hero__news-body {
  padding: 20px 28px;
}

.hero__news-title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  line-height: 1.6;
}

.hero__news-text {
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  line-height: 1.9;
}

/* About */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.about__text {
  padding-top: 8px;
}

.about__desc {
  font-size: 0.875rem;
  line-height: 2;
  color: var(--color-gray-600);
  margin-bottom: 32px;
}

.about__cta {
  margin-bottom: 8px;
}

.about__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.about__images .about__img--1 {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: 3 / 4;
}

.about__images .about__img--2 {
  aspect-ratio: 4 / 3;
}

.about__images .about__img--3 {
  aspect-ratio: 1;
}

.about__images .about__img--4 {
  grid-column: 1 / 3;
  aspect-ratio: 16 / 9;
}

.about__images .about__img--5 {
  grid-column: 1 / 3;
  aspect-ratio: 16 / 10;
}

/* Gallery */
.gallery__intro {
  max-width: 640px;
  margin-bottom: 40px;
}

.gallery__desc {
  font-size: 0.875rem;
  line-height: 2;
  color: var(--color-gray-600);
  margin-bottom: 28px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery__item {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  width: 100%;
}

.gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.88);
  cursor: zoom-out;
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: lightbox-in 0.28s ease;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(92vh - 40px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.lightbox-open {
  overflow: hidden;
}

/* Point */
.point__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.point-card {
  overflow: hidden;
  transition: transform var(--transition);
}

.point-card:hover {
  transform: translateY(-4px);
}

.point-card img {
  width: 100%;
  height: auto;
}

/* Plan */
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.plan-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.plan-item__label {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  padding: 10px 28px;
  margin-bottom: 20px;
}

.plan-item__offer {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.plan-item__desc {
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--color-gray-600);
  margin-bottom: 20px;
}

.plan-item__terms {
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--color-gray-600);
  background: var(--color-gray-50);
  padding: 14px 16px;
  border-left: 3px solid var(--color-green);
}

.plan-item__terms dt {
  font-weight: 500;
  display: inline;
}

.plan-item__terms dd {
  display: inline;
}

.plan-item__terms div + div {
  margin-top: 4px;
}

.plan-item__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-green) 55%, var(--color-green-dark) 100%);
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  box-shadow: 0 6px 18px rgba(93, 163, 137, 0.3);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

.plan-item__banner:hover {
  opacity: 0.94;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(93, 163, 137, 0.38);
}

.plan-item__visual {
  position: relative;
  width: 496px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 24px 16px 16px;
  justify-self: end;
}

.plan-item__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/plan/plan-base.png") center / cover no-repeat;
  opacity: 0.85;
  z-index: 0;
}

.plan-item__visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 464 / 533;
  height: auto;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.plan-item__image--photo-02 {
  object-position: center 40%;
}

.plan-item__image--photo-03 {
  object-position: 72% 46%;
}

.section-title--about {
  line-height: 1.7;
}

.section-title--about .section-title__en {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  letter-spacing: 0.12em;
  color: var(--color-black);
}

.section-title--about .section-title__ja {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-gray-600);
}

/* Access */
.access__maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.access__maps img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1160;
  object-fit: contain;
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
}

.access__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 48px;
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

.access__hints li {
  position: relative;
  padding-left: 14px;
}

.access__hints li::before {
  content: "●";
  position: absolute;
  left: 0;
  font-size: 0.4rem;
  top: 0.55em;
  color: var(--color-green);
}

.access__contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding: 40px;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
}

.access__brand {
  margin-bottom: 24px;
}

.access__brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.access__brand-en {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--color-gray-600);
  margin-top: 4px;
}

.access__tel {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  transition: color var(--transition);
}

.access__tel:hover {
  color: var(--color-green);
}

.access__hours,
.access__mail,
.access__line-id {
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--color-gray-600);
  margin-bottom: 16px;
}

.access__hours strong,
.access__mail strong,
.access__line-id strong {
  display: block;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 4px;
}

.access__line-id a {
  color: var(--color-green);
}

.access__line-id a:hover {
  text-decoration: underline;
}

.access__cta-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  text-align: center;
}

.access__cta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access__cta-btn {
  display: block;
  background: var(--color-gray-200);
  padding: 18px 20px;
  text-align: center;
  transition: background var(--transition), color var(--transition);
}

.access__cta-btn:hover {
  background: var(--color-green);
  color: var(--color-white);
}

.access__cta-btn span {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.access__cta-btn small {
  font-size: 0.6875rem;
  opacity: 0.8;
}

.access__map-embed {
  margin-top: 40px;
}

.access__map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(30%);
}

/* Fade-in motion */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero__news {
    grid-template-columns: 1fr;
  }

  .hero__news-meta {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-200);
    padding-bottom: 12px;
  }

  .about__inner,
  .plan-item,
  .access__maps,
  .access__contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .point__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .plan-item__visual {
    order: -1;
    justify-self: center;
    width: min(496px, 100%);
  }

  .plan-item__visual--photo-03 img {
    object-position: 76% 42%;
  }

  .plan-item__image--photo-02 {
    object-position: center 40%;
  }

  .plan-item__image--photo-03 {
    object-position: 76% 42%;
  }
}

@media (max-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid .gallery__item:last-child {
    grid-column: 1 / 3;
  }

  .hero__visual,
  .hero__news {
    width: calc(100% - 24px);
  }

  .hero__visual > img:first-child {
    height: min(54vh, 440px);
    min-height: 240px;
  }

  .hero__badge {
    width: clamp(110px, 32vw, 140px);
    top: -22px;
    left: -4px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }

  .lightbox__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }

  .access__contact {
    padding: 24px;
  }

  .about__images {
    gap: 8px;
  }
}
