/* ============================================================
   Front page sections
   ============================================================ */

/* ---------- Hero ---------- */
.p-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.p-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.35) 0%,
    rgba(26, 26, 26, 0.48) 55%,
    rgba(26, 26, 26, 0.62) 100%
  );
  z-index: 1;
}

.p-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-inverse);
  padding: 40px var(--gutter);
}

.p-hero__catch {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.p-hero__sub {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.32em;
  opacity: 0.88;
}

.p-hero__actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.p-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-inverse);
  opacity: 0.75;
}

.p-hero__scroll-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.p-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: currentColor;
  animation: hero-scroll 1.8s ease-in-out infinite;
}

@keyframes hero-scroll {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .p-hero {
    min-height: 85vh;
    padding-top: var(--header-h-sp);
  }

  .p-hero__catch {
    letter-spacing: 0.12em;
  }
}

/* ---------- Concept ---------- */
.p-concept__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.p-concept__media {
  overflow: hidden;
  background: #e8e6e2;
  aspect-ratio: 4 / 5;
}

.p-concept__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-concept__body {
  max-width: 460px;
}

.p-concept__text {
  margin-top: 28px;
  font-size: 14px;
  line-height: 2.1;
  color: var(--color-text-muted);
}

.p-concept__text p + p {
  margin-top: 1.2em;
}

.p-concept__points {
  margin-top: 36px;
  display: grid;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.p-concept__point-title {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.p-concept__point-text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

@media (max-width: 1023px) {
  .p-concept__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .p-concept__media {
    aspect-ratio: 16 / 10;
    max-width: 640px;
  }

  .p-concept__body {
    max-width: none;
  }
}

/* ---------- Service ---------- */
.p-service .c-section-header__lead {
  max-width: 36em;
  margin-inline: auto;
}

.p-service__notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.p-service__note-title {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.p-service__note-text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .p-service__notes {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
  }
}

/* ---------- Menu ---------- */
.p-menu__actions {
  margin-top: 56px;
  text-align: center;
}

.p-menu__actions[hidden] {
  display: none;
}

.p-menu .c-card.is-hidden {
  display: none;
}

/* ---------- News ---------- */
.p-news__actions {
  margin-top: 40px;
  text-align: center;
}

/* ---------- FAQ ---------- */
.p-faq .c-faq {
  max-width: 800px;
  margin-inline: auto;
}

/* ---------- Access ---------- */
.p-access__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: stretch;
}

.p-access__dl {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.p-access__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 1.8;
}

.p-access__row dt {
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  font-size: 12px;
}

.p-access__map {
  min-height: 360px;
  height: 100%;
  background: #e8e6e2;
  overflow: hidden;
}

.p-access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(1);
}

@media (max-width: 1023px) {
  .p-access__map,
  .p-access__map iframe {
    min-height: 280px;
  }
}

@media (max-width: 1023px) {
  .p-access__inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Instagram ---------- */
.p-instagram__header {
  text-align: center;
  margin-bottom: 40px;
}

.p-instagram__account {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.08em;
}

.p-instagram__actions {
  margin-top: 40px;
  text-align: center;
}

.p-instagram__feed {
  margin-top: 0;
}

.p-instagram__feed .sbi_header,
.p-instagram__feed #sb_instagram {
  margin-inline: auto;
}

/* ---------- CTA ---------- */
.p-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--color-inverse-bg);
}

.p-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.p-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.45;
}

.p-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26, 26, 26, 0.62);
}

.p-cta__inner {
  position: relative;
  z-index: 2;
}

.p-cta__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3.5vw, 36px);
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.p-cta__lead {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 2;
}

.p-cta__actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.p-cta__actions .c-btn {
  flex: 0 1 240px;
  width: 240px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .p-cta__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .p-cta__actions .c-btn {
    width: 100%;
    flex: none;
  }
}

/* body offset for fixed header */
body {
  padding-top: 0;
}

main {
  display: block;
}
