/* ==================== Variables ==================== */
:root {
  /* Colors */
  --color-primary: #b8935e;
  --color-primary-dark: #8f6f43;
  --color-navy: #24365f;
  --color-pink: #c9838c;
  --color-text: #3c332a;
  --color-bg: #f7f2e6;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Typography */
  --font-base: "Shippori Mincho", serif;
  --font-en: "Playfair Display", serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;

  /* Layout */
  --content-width: 1100px;
  --breakpoint-pc: 768px;
}

/* ==================== Reset ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(4.5rem, 9vw, 6rem);
}

body,
h1, h2, h3, p, ul, ol, li {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: clamp(4.5rem, 9vw, 6rem);
}

/* ==================== Header ==================== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  background-color: #fafaf5;
  transform: translateX(-50%);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(4.5rem, 9vw, 6rem);
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 4vw, 2rem) clamp(0.75rem, 2vw, 1.25rem) clamp(1.5rem, 7vw, 4.5rem);
}

.header__logo {
  font-family: var(--font-en);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.875rem, 6vw, 2.25rem);
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.header__menu {
  position: relative;
  display: block;
  width: clamp(2.5rem, 8vw, 2.75rem);
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header__menu span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #8c887f;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.header__menu span:first-child {
  top: calc(50% - 0.75rem);
}

.header__menu span:nth-child(2) {
  top: 50%;
}

.header__menu span:last-child {
  top: calc(50% + 0.75rem);
}

.header__menu[aria-expanded="true"] span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.header__menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__menu[aria-expanded="true"] span:last-child {
  top: 50%;
  transform: rotate(-45deg);
}

.header__menu:focus {
  outline: none;
}

.header__menu:focus-visible {
  outline: none;
}

/* ==================== Global Menu ==================== */
.global-menu {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  width: min(calc(100% - 1.5rem), 30rem);
  padding: clamp(2rem, 8vw, 2.75rem) clamp(1.5rem, 7vw, 2rem) clamp(3rem, 12vw, 3.5rem);
  /* border: 1px solid #333333; */
  background-color: #fafafa;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.global-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.global-menu__list {
  border-top: 1px solid #aaa7a0;
}

.global-menu__link {
  display: flex;
  align-items: center;
  min-height: clamp(2.75rem, 11vw, 3rem);
  border-bottom: 1px solid #aaa7a0;
  color: #5a3f0b;
  font-size: clamp(1.05rem, 5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.global-menu__link--home {
  gap: 0.75rem;
}

.global-menu__home {
  width: 1.25rem;
  flex: 0 0 auto;
}

.global-menu__arrow {
  width: clamp(1.65rem, 8vw, 1.85rem);
  margin-left: auto;
  flex: 0 0 auto;
}

.global-menu__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (hover: hover) {
  .header__menu:hover span {
    background-color: var(--color-primary-dark);
  }
}

/* ==================== Intro ==================== */
/* Hero+About+Features+Venueの共通背景(01)。下端が三角形に欠けており、
   次セクション(worries)に重なる。worries(z-index:3)より前面になるようz-index:4 */
.intro {
  position: relative;
  z-index: 7;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto -7.43%;
}

.intro__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ==================== Hero ==================== */

.hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero__img {
  width: 100%;
}

/* ==================== About ==================== */
.about {
  padding: clamp(3rem, 10vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.about__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.about__img {
  width: 100%;
}

/* ==================== Features ==================== */
.features {
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(3rem, 10vw, 5rem);
}

.features__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.features__img {
  width: 100%;
}

/* ==================== Venue ==================== */
.venue {
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(6rem, 18vw, 14rem);
}

.venue__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.venue__img {
  width: 100%;
}

/* ==================== Worries ==================== */
/* 画像下端が三角形に欠けており、次セクション(reasons)に重なる。
   重なり分を負のmargin-bottomで引き上げ、z-indexで手前に出す */
.worries {
  position: relative;
  z-index: 6;
  max-width: var(--content-width);
  margin: 0 auto -6.81% auto;
}

.worries__img {
  width: 100%;
}

/* ==================== Reasons ==================== */
/* reasons__bg(09)も下端が三角形に欠けており、次セクション(points)に重なる想定。
   worries(z-index:3)より背面、points(次)より前面になるようz-index:2 */
.reasons {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto -7.5%;
}

.reasons__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.reasons__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 0 clamp(6rem, 18vw, 14rem);
}

.reasons__img {
  width: 100%;
}

.reasons__img + .reasons__img {
  width: calc(100% - clamp(2rem, 8vw, 6rem));
  margin: clamp(1.5rem, 5vw, 2.5rem) auto 0;
}

/* ==================== Points ==================== */
.points {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto -7.5%;
}

.points__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.points__inner {
  padding: clamp(6rem, 16vw, 12rem) 0 clamp(5rem, 14vw, 10rem);
}

.points__title {
  width: 81%;
  margin: 0 auto clamp(1rem, 3vw, 2rem);
}

.points__list {
  display: grid;
  gap: clamp(0.25rem, 1vw, 0.75rem);
}

.points__item {
  margin: 0 auto;
}

.points__item--odd {
  width: 90%;
}

.points__item--even {
  width: 86%;
}

/* ==================== Price ==================== */
.price {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto -5%;
}

.price__img {
  width: 100%;
}

/* ==================== Flow ==================== */
.flow {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto -4%;
}

.flow__bg,
.guideline__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.flow__inner {
  padding: clamp(6rem, 16vw, 12rem) 0 clamp(6rem, 16vw, 12rem);
}

.flow__title {
  width: 43%;
  margin: 0 auto clamp(2rem, 6vw, 4rem);
}

.flow__steps {
  width: 85%;
  margin: 0 auto;
}

/* ==================== Guideline ==================== */
.guideline {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto -4%;
}

.guideline__inner {
  padding: clamp(6rem, 16vw, 12rem) 0 clamp(6rem, 16vw, 12rem);
}

.guideline__top {
  width: 86%;
  margin: 0 auto clamp(2rem, 6vw, 4rem);
}

.guideline__image {
  width: 97%;
  margin: 0 auto;
}

/* ==================== CTA ==================== */
.cta {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  margin: clamp(-6rem, -8vw, -2rem) auto 0;
}

.cta__img {
  width: 100%;
}

.cta__buttons {
  position: absolute;
  top: 63%;
  left: 7%;
  display: flex;
  gap: 3.5%;
  width: 86%;
}

.cta__button {
  display: block;
  flex: 1 1 0;
  min-width: 0;
}

.cta__button img {
  width: 100%;
}

/* ==================== Footer ==================== */
.footer {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  background-color: var(--color-white);
}

.footer__img {
  position: relative;
  z-index: 0;
  width: 100%;
}

.footer__instagram {
  position: absolute;
  z-index: 1;
  top: 15%;
  right: 5%;
  width: 20%;
  height: auto;
}

.footer__instagram img {
  width: 100%;
}

/* ==================== SP Fixed CTA ==================== */
.sp-fixed-cta {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  .sp-fixed-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 90;
    display: flex;
    gap: clamp(0.5rem, 2vw, 0.75rem);
    width: 100%;
    max-width: var(--content-width);
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 3vw, 1rem) calc(clamp(0.5rem, 2vw, 0.75rem) + env(safe-area-inset-bottom));
    background-color: #fafaf5;
    box-shadow: 0 -1px 8px rgba(60, 51, 42, 0.12);
    transform: translateX(-50%);
  }

  .sp-fixed-cta__button {
    display: block;
    flex: 1 1 0;
    min-width: 0;
  }

  .sp-fixed-cta__button img {
    width: 100%;
  }
}
