@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;400;500;700&display=swap');

/* デザインシステム変数 */
:root {
  --color-primary: #FFF0F2;      /* パステルピンクベース */
  --color-primary-dark: #F5C6CB; /* 少し濃いパステルピンク */
  --color-accent-blue: #E8F4F8;  /* ナチュラル水色 */
  --color-bg-beige: #FAF8F5;     /* ナチュラルベージュ */
  --color-text-brown: #3E312B;   /* ダークブラウン（文字色） */
  --color-text-muted: #7A6960;   /* 薄めのダークブラウン */
  --font-family: 'Noto Sans JP', sans-serif;
}

/* 全体設定 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--color-text-brown);
  background-color: #FFFFFF;
  overflow-x: hidden;
  /* テキスト選択の禁止 */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 各セクションの余白設計 (垢抜けの肝) */
section {
  margin-bottom: 80px; /* SP */
  position: relative;
}

@media (min-width: 1024px) {
  section {
    margin-bottom: 140px; /* PC: 120px以上 */
  }
}

/* セクションタイトル画像 (全幅の50%幅、中央配置、シャドウ・角丸なし) */
.section-heading-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .section-heading-wrapper {
    margin-bottom: 60px;
  }
}

.section-heading-img-container {
  position: relative;
  width: 100%;
  max-width: 50%;
  aspect-ratio: 4 / 1;
  overflow: hidden;
}

.section-heading-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 角丸とシャドウの禁止 */
  border-radius: 0 !important;
  box-shadow: none !important;
}

.section-heading-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .section-heading-title {
    font-size: 1.5rem;
  }
}

/* コンテンツ画像に対する強制ルール (角丸・シャドウなし) */
img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* スタイルエディトリアルブロークングリッド */
.broken-grid-layout {
  position: relative;
}

@media (min-width: 1024px) {
  .broken-grid-image-wrapper {
    position: relative;
    padding-top: 40px;
  }
  .broken-grid-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 80%;
    height: 90%;
    background-color: var(--color-primary);
    z-index: -1;
  }
}

/* パララックス（固定背景）おすすめメニュー */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Safariなどbackground-attachment: fixedが動作しづらい端末向けフォールバック */
@media (max-width: 1024px) {
  .parallax-section {
    background-attachment: scroll;
  }
}

.parallax-overlay {
  background-color: rgba(255, 255, 255, 0.88);
}

/* ボタン装飾 (参考サイト風、洗練された余白とシャドウ) */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  background-color: var(--color-text-brown);
  border: 1px solid var(--color-text-brown);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-primary-dark);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-premium:hover {
  color: var(--color-text-brown);
  border-color: var(--color-primary-dark);
}

.btn-premium:hover::before {
  width: 100%;
}

.btn-secondary-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-brown);
  background-color: transparent;
  border: 1px solid var(--color-text-brown);
  transition: all 0.4s ease;
}

.btn-secondary-premium:hover {
  background-color: var(--color-bg-beige);
}

/* Swiperカスタムスタイル */
.swiper-pagination-bullet-active {
  background: var(--color-text-brown) !important;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--color-text-brown) !important;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 1.2rem !important;
  font-weight: bold;
}

/* FV Swiper 全画面調整 */
.fv-container {
  position: relative;
  width: 100%;
  height: 70vh; /* SP */
  overflow: hidden;
}

@media (min-width: 1024px) {
  .fv-container {
    height: calc(100vh - 80px); /* PC: viewport - header height */
  }
}

.fv-swiper {
  width: 100%;
  height: 100% !important;
}

.fv-swiper .swiper-wrapper {
  height: 100% !important;
}

.fv-swiper .swiper-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.fv-swiper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  vertical-align: bottom;
  transform: scale(1.03);
  transition: transform 6.5s ease-out;
}

/* Active slide zoom animation */
.swiper-slide-active img {
  transform: scale(1.1);
}

/* Elegant vertical text overlay styling */
.fv-vertical-text {
  writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  text-orientation: mixed;
}

.font-serif {
  font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', 'BIZ UDPMincho', 'MS Mincho', serif;
}

.fv-text-box {
  animation: fvTextFadeInUp 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fvTextFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SPフル画面メニュー */
.sp-overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(254, 248, 248, 0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sp-overlay-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* ライトボックスモーダル */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(62, 49, 43, 0.95);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* TOPへ戻るスクロールボタン */
.back-to-top-btn {
  position: fixed;
  bottom: 80px; /* SPの追従CTAを考慮 */
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: rgba(62, 49, 43, 0.85);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  border: none;
  outline: none;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background-color: var(--color-text-brown);
  transform: translateY(-4px);
}

@media (min-width: 1024px) {
  .back-to-top-btn {
    bottom: 32px;
  }
}

/* SP追従CTA */
.sp-fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 998;
  display: flex;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

/* 装飾的アンダーライン */
.elegant-underline {
  position: relative;
  display: inline-block;
}

.elegant-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-text-muted);
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.elegant-underline:hover::after {
  transform: scaleX(1);
}

/* Gallery Image Custom Responsive Dimensions */
.gallery-img-trigger {
  width: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  aspect-ratio: 2 / 3 !important; /* Elegant aspect ratio for SP */
  height: auto !important;
  border-radius: 8px !important; /* Premium rounded corners for SP */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; /* Sleek, soft shadow */
}

@media (min-width: 768px) {
  .gallery-img-trigger {
    width: 400px !important;
    height: 550px !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    border-radius: 12px !important; /* Slightly more defined rounded corners for desktop */
  }
}
