/*
 * Marriage Vision — サイト全体CSS
 * Header shell (Bootstrap 5 navbar, sticky-friendly, md = 768px)
 */

:root {
  --c-main: #C85C6B;
  --c-accent: #7A2E2E;
  --c-text: #3E3E3E;
  --c-text-sub: #666666;
  --c-bg: #F7F3EF;
  --header-h: 90px;
}

html {
  scroll-padding-top: 90px;
}

body {
  font-family: "Noto Sans JP";
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
}

.container {
  width: 1140px;
  max-width: 100%;
}

a {
  color: var(--c-text);
  text-decoration: none;
  transition: color .3s ease;
}

a:hover {
  color: var(--c-main);
}

h2,
h3,
h4 {
  font-family: "Zen Old Mincho", serif;
}

.bg-beige {
  background-color: var(--c-bg);
}
.bg-pink {
  background-color: #FFF6F6;
}

/* =========================
header
========================= */

.l-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--c-text);
  background: transparent;
  font-family: "Noto Serif JP", serif;
  transition: background-color .4s ease;
}

.l-header.is-scroll,
body.is-subpage .l-header {
  background: rgba(255, 255, 255, .92);
}

.l-header .navbar {
  height: 100%;
  align-items: center;
}

.l-header__brand {
  position: relative;
  z-index: 3;
  margin-left: clamp(0.75rem, 1.5vw, 3rem);
}

.l-header__brand img {
  display: block;
  height: 72px;
}

.l-header__nav-wrap {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 1.5vw, 3rem);
}

.l-header__nav {
  align-items: center;
  margin-left: auto;
}

.l-header__nav .nav-item+.nav-item {
  margin-left: clamp(0.5rem, 1.2vw, 1.5rem);
}

.l-header__link {
  padding: 0;
  font-size: clamp(0.85rem, 0.7rem + 0.3vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-text);
  white-space: nowrap;
}

.l-header__link:hover {
  color: var(--c-accent);
}

.l-header__arrow {
  display: none;
}

.l-header__cta {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 1.5rem);
}

.l-header__social {
  gap: clamp(0.5rem, 1vw, 1.5rem);
}

.l-header__social-link .bi {
  font-size: 1.75rem;
}

.l-header__toggle {
  display: none;
}

.l-header__overlay {
  display: none;
}

/* =========================
sp megamenu
========================= */

@media (max-width: 767.98px) {

  .l-header {
    height: 72px;
    background: rgba(255, 255, 255, .92);
  }

  .l-header__brand {
    margin-left: 0;
  }

  .l-header__brand img {
    width: 120px;
    height: 52px;
  }

  .l-header .navbar {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .l-header__brand {
    flex-shrink: 0;
  }

  /* ヘッダー常時表示 TEL（SP） */
  .l-header__tel-sp.c-btn {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin-left: auto;
    margin-right: 0;
    padding: 0.25rem 0;
    gap: 0.2rem;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .l-header__tel-sp .bi {
    flex-shrink: 0;
    font-size: 1rem;
  }

  /* ハンバーガー / クローズトグル */
  .l-header__toggle {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 0.5rem;
    color: var(--c-text);
    font-size: 1.75rem;
    line-height: 1;
    background: transparent;
    border: 0;
  }

  .l-header__toggle:focus {
    box-shadow: none;
    outline: none;
  }

  .l-header__toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .25s ease, transform .25s ease;
  }

  .l-header__toggle-icon--close {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: rotate(-90deg);
  }

  .l-header.is-menu-open .l-header__toggle-icon--open {
    opacity: 0;
    transform: rotate(90deg);
  }

  .l-header.is-menu-open .l-header__toggle-icon--close {
    opacity: 1;
    transform: rotate(0);
  }

  /* オーバーレイ */
  .l-header__overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .l-header__overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* スライドインメニュー */
  .l-header__nav-wrap {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(100%, 420px);
    margin: 0;
    padding: calc(72px + 1.5rem) 1.5rem 1.5rem;
    background: var(--c-bg);
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
  }

  .l-header__nav-wrap.is-active {
    transform: translateX(0);
    opacity: 0.9;
  }

  /* ナビリスト */
  .l-header__nav {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .l-header__nav .nav-item {
    border-bottom: 1px dotted rgba(200, 92, 107, 0.4);
  }

  .l-header__nav .nav-item:first-child {
    border-top: 1px dotted rgba(200, 92, 107, 0.4);
  }

  .l-header__nav .nav-item+.nav-item {
    margin-left: 0;
    margin-top: 0;
  }

  .l-header__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-family: "Noto Serif JP", serif;
    font-size: 1rem;
    font-weight: 500;
  }

  .l-header__arrow {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--c-text);
    border-radius: 50%;
    color: var(--c-text);
    font-size: 0.85rem;
    transform: translateY(-50%);
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  }

  .l-header__link:hover .l-header__arrow,
  .l-header__link:focus .l-header__arrow {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
  }

  /* メニュー下部 CTA */
  .l-header__cta {
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    gap: 1.25rem;
  }

  .l-header__cta .c-btn--tel {
    width: auto;
    padding: 0.25rem 0;
    font-size: 1.6rem;
    background: transparent;
    border-color: transparent;
  }

  .l-header__social {
    gap: 1.5rem;
  }

  .l-header__social-link .bi {
    font-size: 1.75rem;
  }

  .l-header__cta .c-btn--contact {
    width: 100%;
    height: 70px;
    margin-top: auto;
    border-radius: 10px;
  }

}

/* メニュー展開中の本文スクロールロック */
body.is-menu-open {
  overflow: hidden;
}

/* =========================
main
========================= */
.l-section {
  padding: 80px 0;
}

@media (max-width: 767.98px) {
  .l-section {
    padding: 60px 0;
  }
}

/* =========================
footer
========================= */

.l-footer {
  padding: 80px 0 32px;
  background-color: #F2F2F2;
}

.l-footer__main {
  margin-bottom: 56px;
}

.l-footer__brand img {
  display: block;
  width: auto;
  height: 92px;
}

.l-footer__nav-wrap {
  font-family: "Noto Serif JP", serif;
}

.l-footer__nav li + li {
  margin-top: 10px;
}

.l-footer__link {
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-text);
}

.l-footer__link:hover,
.l-footer__link:focus {
  color: var(--c-main);
}

.l-footer__banners {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.l-footer__banner {
  display: block;
  transition: opacity 0.3s ease;
}

.l-footer__banner:hover {
  opacity: 0.8;
}

.l-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(62, 62, 62, 0.08);
}

.l-footer__copy {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--c-text-sub);
}

.l-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--c-text);
  font-size: 2rem;
  line-height: 1;
}

.l-footer__social-link:hover,
.l-footer__social-link:focus {
  color: var(--c-main);
}

@media (max-width: 767.98px) {
  .l-footer {
    padding: 56px 0 24px;
  }

  .l-footer__main {
    margin-bottom: 32px;
  }

  .l-footer__brand img {
    height: 80px;
    margin-inline: auto;
  }

  .l-footer__nav-wrap {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    padding: 0 1.5rem;
  }

  .l-footer__nav {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .l-footer__nav + .l-footer__nav > li:first-child {
    margin-top: 10px;
  }

  .l-footer__banners {
    align-items: center;
  }

  .l-footer__bottom {
    padding-top: 20px;
  }
}
