/*
 * Wedding Modern Layout - Minimal Gallery Theme
 * Studio Una - Photo Wedding Page
 * Based on design-system.css unified theme
 */

/* =============================================================================
   HERO SECTION - Elegant Wedding Design
   ============================================================================= */

.hero-wedding {
    min-height: 85vh;
    display: grid;
    grid-template-columns: 55fr 45fr;
    grid-gap: 0;
    background: var(--color-surface-primary);
    position: relative;
    container-type: inline-size;
}

.hero-container {
    display: contents;
}

.hero-visual {
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 169, 110, 0.15) 0%,
        rgba(45, 45, 45, 0.25) 100%
    );
}

.hero-badge {
    position: absolute;
    top: var(--space-8);
    right: var(--space-8);
    background: var(--color-surface-primary);
    color: var(--color-text-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: 24px;
    font-size: var(--font-sm);
    font-weight: 500;
    font-family: var(--font-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.05em;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-12) var(--space-8);
    gap: var(--space-8);
    background: var(--color-surface-primary);
}

.hero-title {
    font-family: var(--font-display);
    margin: 0;
}

.title-main {
    display: block;
    font-size: var(--font-3xl);
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-3);
    letter-spacing: 0.02em;
}

.title-sub {
    display: block;
    font-size: var(--font-lg);
    font-weight: 300;
    color: var(--color-accent-primary);
    font-family: var(--font-japanese);
    line-height: 1.4;
}

.hero-description {
    font-size: var(--font-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    font-family: var(--font-japanese);
}

.hero-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.price-from {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
}

.price-note {
    font-size: var(--font-sm);
    color: var(--color-text-muted);
    font-family: var(--font-japanese);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-surface-secondary);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    font-family: var(--font-japanese);
}

.feature-item i {
    color: var(--color-accent-primary);
    font-size: var(--font-base);
}

/* =============================================================================
   BUTTONS - Unified Design System
   ============================================================================= */

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-plan {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: 6px;
    font-size: var(--font-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--timing-quick) ease;
    font-family: var(--font-japanese);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-text-primary);
    color: var(--color-text-inverse);
}

.btn-primary:hover {
    background: var(--color-charcoal);
    color: var(--color-text-inverse);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-surface-secondary);
    color: var(--color-text-primary);
    border-color: var(--color-surface-secondary);
}

.btn-secondary:hover {
    background: var(--color-text-primary);
    color: var(--color-text-inverse);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-text-primary);
}

.btn-outline:hover {
    background: var(--color-text-primary);
    color: var(--color-text-inverse);
}

.btn-plan {
    background: var(--color-accent-primary);
    color: var(--color-white);
}

.btn-plan:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* =============================================================================
   BREADCRUMB NAVIGATION
   ============================================================================= */

.breadcrumb-nav {
    background: var(--color-surface-secondary);
    padding: var(--space-4) 0;
    font-size: var(--font-sm);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-japanese);
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    margin-left: var(--space-2);
    color: var(--color-text-muted);
}

.breadcrumb-list a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--color-accent-primary);
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* =============================================================================
   WEDDING PLANS SECTION - Premium Grid Layout
   ============================================================================= */

.plans-wedding {
    padding: var(--space-24) 0;
    background: var(--color-surface-primary);
}

.plans-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--font-2xl);
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-4) 0;
    line-height: 1.3;
}

.section-description {
    font-size: var(--font-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    font-family: var(--font-japanese);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: var(--space-8);
    margin-bottom: var(--space-24);
}

.plan-card {
    background: var(--color-surface-primary);
    border: 1px solid var(--color-surface-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--timing-moderate) ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
    border-color: var(--color-accent-primary);
    position: relative;
}

.plan-visual {
    position: relative;
    aspect-ratio: var(--ratio-photo);
    overflow: hidden;
}

.plan-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.plan-category {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--color-white);
    color: var(--color-text-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 600;
    font-family: var(--font-japanese);
}

.featured-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--color-accent-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-3);
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 600;
    font-family: var(--font-japanese);
}

.plan-content {
    padding: var(--space-6);
}

.plan-name {
    font-family: var(--font-japanese);
    font-size: var(--font-lg);
    font-weight: 500;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-3) 0;
    line-height: 1.3;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.price {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
}

.price-note {
    font-size: var(--font-sm);
    color: var(--color-text-muted);
    font-family: var(--font-japanese);
}

.plan-description {
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    font-family: var(--font-japanese);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
}

.plan-features li {
    padding: var(--space-2) 0;
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    font-family: var(--font-japanese);
    position: relative;
    padding-left: var(--space-4);
}

.plan-features li::before {
    content: "•";
    color: var(--color-accent-primary);
    position: absolute;
    left: 0;
}

/* =============================================================================
   MOVIE SECTION - Premium Add-on Services
   ============================================================================= */

.movie-section {
    border-top: 2px solid var(--color-surface-secondary);
    padding-top: var(--space-16);
}

.movie-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: var(--space-6);
    max-width: 900px;
    margin: 0 auto;
}

.movie-card {
    background: var(--color-surface-secondary);
    padding: var(--space-6);
    border-radius: 8px;
    text-align: center;
    transition: all var(--timing-moderate) ease;
}

.movie-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.movie-name {
    font-family: var(--font-japanese);
    font-size: var(--font-base);
    font-weight: 500;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-3) 0;
}

.movie-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-4);
}

.movie-description {
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-japanese);
}

/* =============================================================================
   GALLERY SECTION - Elegant Portfolio Grid
   ============================================================================= */

.gallery-wedding {
    padding: var(--space-24) 0;
    background: var(--color-surface-secondary);
}

.gallery-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.works-item {
    position: relative;
    aspect-ratio: var(--ratio-square);
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.works-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--timing-moderate) ease;
}

.works {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--timing-moderate) ease;
    color: var(--color-white);
    text-align: center;
}

.works-item:hover .works {
    opacity: 1;
}

.works-item:hover img {
    transform: scale(1.05);
}

.overlay-content h4 {
    font-size: var(--font-base);
    font-weight: 500;
    margin: 0 0 var(--space-2) 0;
    font-family: var(--font-japanese);
}

.overlay-content p {
    font-size: var(--font-sm);
    margin: 0;
    opacity: 0.8;
    font-family: var(--font-japanese);
}

.gallery-cta {
    text-align: center;
}

/* =============================================================================
   FINAL CTA SECTION - Romantic & Immersive
   ============================================================================= */

.cta-wedding {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-background {
    position: absolute;
    inset: 0;
    z-index: var(--z-base);
}

.cta-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-elevated);
}

.cta-content {
    position: relative;
    z-index: var(--z-sticky);
    text-align: center;
    color: var(--color-white);
    max-width: 600px;
}

.cta-title {
    font-family: var(--font-display);
    font-size: var(--font-2xl);
    font-weight: 400;
    margin: 0 0 var(--space-4) 0;
    line-height: 1.3;
}

.text-accent {
    color: var(--color-accent-primary);
}

.cta-description {
    font-size: var(--font-base);
    line-height: 1.7;
    margin: 0 0 var(--space-8) 0;
    opacity: 0.9;
    font-family: var(--font-japanese);
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   RESPONSIVE DESIGN - Container Query Based
   ============================================================================= */

@container (max-width: 768px) {
    .hero-wedding {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }
  
    .hero-content {
        padding: var(--space-8) var(--space-6);
        gap: var(--space-6);
    }
  
    .title-main {
        font-size: var(--font-2xl);
    }
  
    .hero-actions {
        flex-direction: column;
    }
  
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        text-align: center;
        justify-content: center;
    }
  
    .plans-grid {
        grid-template-columns: 1fr;
    }
  
    .movie-grid {
        grid-template-columns: 1fr;
    }
  
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: var(--space-4);
    }
  
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@container (max-width: 480px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
  
    .hero-badge {
        top: var(--space-4);
        right: var(--space-4);
        font-size: var(--font-xs);
        padding: var(--space-1) var(--space-3);
    }
  
    .cta-title {
        font-size: var(--font-xl);
    }
  
    .plans-grid {
        grid-template-columns: 1fr;
        grid-gap: var(--space-6);
    }
}

/* =============================================================================
   ACCESSIBILITY & MOTION PREFERENCES
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus,
.btn-plan:focus {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
  
    .plan-card {
        border-width: 2px;
    }
  
    .cta-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* =============================================================================
   SCROLL SNAP - Full Screen Sections (Desktop Only)
   ============================================================================= */

@media (min-width: 992px) {
  /* Scroll Snap Container - MUST be on html element for Chrome/Edge */
  html {
    scroll-snap-type: y proximity;
    overflow-y: scroll;
    scroll-padding-top: 90px; /* ナビゲーションバーの高さ分のオフセット（通常88px + 余裕） */
  }

  /* Snap Points */
  .wedding-plan-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(100vh - 90px); /* ナビバー分を除いた高さ */
  }

  /* Gallery以降はスナップを無効化（通常スクロール） */
  .gallery-wedding,
  .cta-wedding,
  #contact,
  footer {
    scroll-snap-align: none;
  }
}

/* ===============================================================
   Utility Classes for Inline Style Externalization
   Phase C - 2025-11-20
   =============================================================== */

/* Section Description - セクション説明文 */
.section-description {
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Note Text - 注釈テキスト（小さめグレー） */
.note-text {
  font-size: 0.85em;
  color: #666;
}

.note-text-sm {
  font-size: 0.85em;
  margin-top: 0.5rem;
  color: #666;
}

.note-text-md {
  font-size: 0.85em;
  margin-top: 1rem;
  color: #666;
}

/* Option Heading - オプション見出し */
.option-heading {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #3a3633;
  text-align: center;
}

/* Price Display - 価格表示（下余白なし） */
.price-display {
  margin-bottom: 0;
}

/* Feature List - 特徴リスト（上余白） */
.feature-list {
  margin-top: 1.5rem;
}

/* ===============================================================
   Plan Pages Common Styles - Externalized from inline <style>
   Phase C - 2025-11-20
   Source: family/memorial/wedding/others common CSS
   =============================================================== */

/* ========================================================================
   Hero Section - screen8 style (Single Image with Overlay)
   ======================================================================== */




/* Screen7 Main Profile Section */
.s7-main {
  background: #fff;
}

/* S7セクション間の区切り線 */
.container-fluid .row {
  border-bottom: 1px solid #e0e0e0;
}

.s7-main-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0;
  min-height: 600px; /* TODO: 高さ調整検討 */
}

.s7-portrait {
  position: relative;
  overflow: hidden;
  background: #f5f3f0;
}

.s7-portrait-image {
  width: 100%;
  height: 600px; /* TODO: 高さ調整検討 */
  object-fit: cover;
  display: block;
}

/* 画像内側の罫線 - 薄い色に調整 */
.s7-portrait::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  border: 2px solid rgba(200, 184, 161, 0.5); /* 元: #c8b8a1 - 不透明度50%で薄く */
  pointer-events: none;
  z-index: 1;
}

.s7-content {
  background: #fff;
  overflow-y: auto;
  max-height: 600px; /* TODO: 高さ調整検討 */
}

/* 和装プラン - ほんの少しだけ濃く */
.s7-main--wafuku .s7-content {
  background: #fafaf8;
}

/* 洋装プラン - 現在のまま（白） */
.s7-main--dress .s7-content {
  background: #fff;
}

/* 和装+洋装プラン - グラデーション */
.s7-main--mixed .s7-content {
  background: linear-gradient(135deg, #fafaf8 0%, #fff 100%);
}

/* 装花プラン - ピンクがかった明るい背景 */
.s7-main--flower .s7-content {
  background: #fffaf8;
}

.s7-content-wrapper {
  padding: 12% 10% 8%;
}

.s7-content-name {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  color: #1a1a1a;
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.s7-content-subtitle {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: #c8b8a1;
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  line-height: 1.6;
  padding-bottom: 1.5rem;
  position: relative;
  /* Gradient line as background */
  background: linear-gradient(90deg, transparent calc(50% - 30px), #c8b8a1 50%, transparent calc(50% + 30px)) no-repeat;
  background-position: center bottom;
  background-size: 80px 2px;
}

.s7-content-subtitle::after {
  content: '◆';
  position: absolute;
  bottom: -0.35rem;
  left: calc(50% + 29px);
  color: #c8b8a1;
  font-size: 0.6rem;
  opacity: 0.6;
}

.s7-content-subtitle::before {
  content: '◆';
  position: absolute;
  bottom: -0.35rem;
  left: calc(50% - 35px);
  color: #c8b8a1;
  font-size: 0.6rem;
  opacity: 0.6;
}

.s7-content-section {
  margin-bottom: 2rem;
}

.s7-content-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  text-align: center;
  letter-spacing: 0.1em;
}

.s7-content-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #4a4744;
}

.s7-content-text p {
  margin-bottom: 1rem;
}

/* 価格表示 */
.s7-content-text > p:first-child {
  text-align: center;
  margin-bottom: calc(1.5rem - 5px); /* 元: 1.5rem - 下側余白を5px削減 */
  margin-top: calc(0.25rem - 25px); /* 元: 0.5rem → 0.25rem - 上側余白を25px削減 */
}

.s7-content-text > p:first-child strong {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-family: 'Noto Serif JP', serif;
  color: #c8b8a1;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  /* border-bottom: 2px solid #c8b8a1; */ /* コメントアウト */
}

/* アイコン付き箇条書き */
.s7-content-text ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
  background: #e8dfd0; /* ブランドカラー薄め背景（はっきり分かる程度） - 元: #FFFFFF */
  padding: 1.5rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(200, 184, 161, 0.5); /* 画像上の罫線と同じ色 */
}

.s7-content-text ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.s7-content-text ul li i {
  position: absolute;
  left: 0;
  top: -0.1rem; /* 元: 0.2rem - アイコンを少し上に調整 */
  color: #c8b8a1;
  font-size: 1.1rem;
}

/* 注記 */
.s7-content-text > p[style*="font-size: 0.9em"] {
  text-align: left;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e8e6e3;
}

/* モバイル対応: 縦並び（写真が上、コンテンツが下） */
@media (max-width: 768px) {
  .s7-main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }

  .s7-portrait {
    grid-column: 1;
    grid-row: 1;
  }

  .s7-portrait-image {
    height: 400px; /* TODO: 高さ調整検討 */
  }

  .s7-content {
    grid-column: 1;
    grid-row: 2;
    max-height: none;
    overflow-y: visible;
  }

  .s7-content-wrapper {
    padding: 8% 6%;
  }
}

/* 2つ横並び時の調整 */
@media (min-width: 992px) {
  /* 各カード内は左右分割レイアウトを維持 */
  .col-lg-6 .s7-portrait-image {
    height: 600px; /* TODO: 高さ調整検討 */
  }

  .col-lg-6 .s7-content {
    max-height: 600px; /* TODO: 高さ調整検討 */
  }
}

/* Screen7 Main Reverse (左右反転) */
.s7-main--reverse .s7-main-grid {
  grid-template-columns: 50% 50%;
}

.s7-main--reverse .s7-portrait {
  grid-column: 2;
  grid-row: 1;
}

.s7-main--reverse .s7-content {
  grid-column: 1;
  grid-row: 1;
}

/* モバイルではReverseも通常と同じ順序（写真が上） */
@media (max-width: 768px) {
  .s7-main--reverse .s7-main-grid {
    grid-template-columns: 1fr;
  }

  .s7-main--reverse .s7-portrait {
    grid-column: 1;
    grid-row: 1;
  }

  .s7-main--reverse .s7-content {
    grid-column: 1;
    grid-row: 2;
  }
}

/* ========================================================================
   Movie Plans Section - s7-main横伸ばし形式
   ======================================================================== */

/* ========================================================================
   各セクションの区切り線と背景色
   ======================================================================== */

/* 和装プランセクション */
.s7-main--wafuku-group {
  border-bottom: 1px solid #e0e0e0;
}

.s7-main--wafuku-group .s7-content--movie {
  background: #fafaf8; /* 薄いベージュ */
}

/* 洋装・和洋装プランセクション */
.s7-main--dress-group {
  border-bottom: 1px solid #e0e0e0;
}

.s7-main--dress-group .s7-content--movie {
  background: #fff; /* 白 */
}

/* その他プランセクション */
.s7-main--other-group {
  border-bottom: 1px solid #e0e0e0;
}

.s7-main--other-group .s7-content--movie {
  background: #f8f8f8; /* 薄いグレー */
}

/* ムービーセクション - 他のパネルと同様の罫線 */
.s7-main--movie {
  border-bottom: 1px solid #e0e0e0;
}

/* ムービーセクション用グリッド（40% | 60%） */
.s7-main-grid--movie {
  grid-template-columns: 40% 60%; /* 左: 画像40%, 右: コンテンツ60% */
  min-height: 700px;
}

/* 画像エリア - 横長に調整 */
.s7-portrait--movie {
  position: relative;
  overflow: hidden;
}

.s7-portrait-image--movie {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

/* コンテンツエリア */
.s7-content--movie {
  background: #fafaf8;
  overflow-y: auto;
  max-height: 700px;
}

/* ムービーセクションのコンテンツラッパー（余白調整） */
.s7-content--movie .s7-content-wrapper {
  padding: 3rem 4rem 3rem;
}

/* 和装・洋装・その他プランは左右余白なし */
.s7-main--wafuku-group .s7-content--movie .s7-content-wrapper,
.s7-main--dress-group .s7-content--movie .s7-content-wrapper,
.s7-main--other-group .s7-content--movie .s7-content-wrapper {
  padding: 3rem 2rem 3rem;
}

/* ヘッダー部分 */
.s7-content-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.s7-ornament {
  font-size: 0.85rem;
  color: #c8b8a1;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.s7-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.s7-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: #666;
  letter-spacing: 0.05em;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ムービーカード一覧 */
.movie-cards-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 大画面では横並び（3つのカードを快適に表示するため1200px以上） */
@media (min-width: 1200px) {
  .movie-cards-container {
    flex-direction: row;
    gap: 1.5rem;
    align-items: stretch; /* カードの高さを揃える */
    justify-content: center; /* 中央揃え */
  }
}

/* 中間サイズ（768px〜1199px）では縦積み */
@media (min-width: 768px) and (max-width: 1199px) {
  .movie-cards-container {
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

.movie-plan-card {
  background: #fff;
  border: 1px solid #e8e6e3;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  flex: 1; /* 均等幅 */
  align-items: center; /* カード内要素を中央揃え */
  justify-content: flex-start; /* 上から配置 */
}

.movie-plan-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #c8b8a1;
  transform: translateY(-2px);
}

.movie-plan-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  color: #3a3633;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.movie-plan-price {
  text-align: center;
  margin-bottom: 0;
  width: 100%;
}

.movie-plan-price strong {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: #c8b8a1;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.movie-plan-description {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 0.95rem);
  color: #4a4744;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 0;
}

/* ムービープラン共通エリア */
.movie-plan-common {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid #e8e6e3;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* 中間サイズ（992px〜1179px）では3つのカード幅まで広げる */
@media (min-width: 992px) and (max-width: 1179px) {
  .movie-plan-common {
    width: 100%;
    max-width: 100%;
  }

  .movie-plan-features {
    max-width: none;
  }
}

/* ムービープラン機能リスト */
.movie-plan-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.5rem;
  text-align: left;
  /* background: #f5f1eb; */ /* かなり薄めのブランドカラー背景 - コメントアウト */
  padding: 0.5rem 0;
  /* border-radius: 8px; */ /* コメントアウト */
  /* border: 1px solid rgba(200, 184, 161, 0.5); */ /* コメントアウト */
}

/* 大画面（1180px〜）では2列グリッド表示 - 共通エリアのみ */
@media (min-width: 1180px) {
  .s7-main--movie .movie-plan-common {
    max-width: 800px; /* 幅を広げて2列表示でも改行を防ぐ */
  }

  /* オープニングムービープラン - 共通エリア内のリストのみ2カラム */
  .s7-main--movie .movie-plan-common .movie-plan-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 0.85rem;
  }

  /* 和装プランも同様に幅を広げる */
  .s7-main--wafuku-group .movie-plan-common {
    max-width: 800px;
  }

  /* 和装プラン - 共通エリア内のリストのみ2カラム */
  .s7-main--wafuku-group .movie-plan-common .movie-plan-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 0.5rem; /* 行間を狭く */
  }
}

.movie-plan-features li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  line-height: 1.8;
  font-size: clamp(0.9rem, 1.1vw, 0.95rem);
  color: #4a4744;
}

/* 大画面では共通エリアのリストのみ margin-bottom を 0 に（gap で制御） */
@media (min-width: 1180px) {
  .s7-main--movie .movie-plan-common .movie-plan-features li,
  .s7-main--wafuku-group .movie-plan-common .movie-plan-features li {
    margin-bottom: 0;
  }
}

.movie-plan-features li i {
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: #c8b8a1;
  font-size: 1rem;
}

/* ムービープラン注記 */
.movie-plan-note {
  font-size: 0.9rem;
  color: #666;
  text-align: left;
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 0;
}

/* オープニングムービープランと和装プランの注記上部に罫線 */
.s7-main--movie .movie-plan-note,
.s7-main--wafuku-group .movie-plan-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8e6e3;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .s7-main-grid--movie {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }

  .s7-portrait--movie {
    grid-column: 1;
    grid-row: 1;
  }

  .s7-portrait-image--movie {
    height: 350px;
  }

  .s7-content--movie {
    grid-column: 1;
    grid-row: 2;
    max-height: none;
    overflow-y: visible;
  }

  .s7-content--movie .s7-content-wrapper {
    padding: 2rem 1.5rem;
  }

  .movie-plan-card {
    padding: 1.5rem 1.75rem;
  }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 991px) {
  .s7-main-grid--movie {
    grid-template-columns: 45% 55%;
    min-height: 600px;
  }

  .s7-portrait-image--movie {
    height: 600px;
  }

  .s7-content--movie {
    max-height: 600px;
  }

  .s7-content--movie .s7-content-wrapper {
    padding: 2.5rem 3rem;
  }
}

/* ========================================================================
   Reverse配置（右配置）- 横伸ばし形式
   ======================================================================== */

/* Reverse配置 - コンテンツ左60%、画像右40% */
.s7-main--reverse-movie .s7-main-grid--movie {
  grid-template-columns: 60% 40%; /* 左: コンテンツ60%, 右: 画像40% */
}

.s7-main--reverse-movie .s7-content {
  grid-column: 1;
  grid-row: 1;
}

.s7-main--reverse-movie .s7-portrait {
  grid-column: 2;
  grid-row: 1;
}

/* モバイルではReverseも通常と同じ順序（画像が上） */
@media (max-width: 768px) {
  .s7-main--reverse-movie .s7-main-grid--movie {
    grid-template-columns: 1fr; /* モバイルは1列 */
  }

  .s7-main--reverse-movie .s7-content {
    grid-column: 1;
    grid-row: 2;
  }

  .s7-main--reverse-movie .s7-portrait {
    grid-column: 1;
    grid-row: 1;
  }
}

/* タブレット対応 - Reverse */
@media (min-width: 769px) and (max-width: 991px) {
  .s7-main--reverse-movie .s7-main-grid--movie {
    grid-template-columns: 55% 45%; /* タブレット: コンテンツ55%, 画像45% */
  }
}

/* ========================================================================
   フルスクリーン表示 - Scroll Snap（大画面のみ）
   ======================================================================== */
@media (min-width: 992px) {
  /* htmlにScroll Snap Container設定（Chrome/Edgeではhtmlが必須） */
  html {
    scroll-snap-type: y proximity;
    overflow-y: scroll;
    scroll-padding-top: 90px; /* ナビゲーションバーの高さ分のオフセット（通常88px + 余裕） */
  }

  /* wedding-plan-sectionクラスを持つ要素をスナップポイントに */
  .wedding-plan-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(100vh - 90px); /* ナビバー分を除いた高さ */
  }

  /* Gallery以降はスナップを無効化（通常スクロール） */
  .gallery-wedding,
  .cta-wedding,
  #contact,
  footer {
    scroll-snap-align: none;
  }

  /* mainセクションもナビバー分を除いた高さ */
  .s7-main--wafuku-group,
  .s7-main--dress-group,
  .s7-main--other-group,
  .s7-main--movie {
    min-height: calc(100vh - 90px);
  }

  /* グリッドもナビバー分を除いた高さ */
  .s7-main--wafuku-group .s7-main-grid--movie,
  .s7-main--dress-group .s7-main-grid--movie,
  .s7-main--other-group .s7-main-grid--movie,
  .s7-main--movie .s7-main-grid--movie {
    min-height: calc(100vh - 90px);
  }

  /* 画像の高さもナビバー分を除いた高さ */
  .s7-main--wafuku-group .s7-portrait-image--movie,
  .s7-main--dress-group .s7-portrait-image--movie,
  .s7-main--other-group .s7-portrait-image--movie,
  .s7-main--movie .s7-portrait-image--movie {
    height: calc(100vh - 90px);
  }

  /* コンテンツエリアもナビバー分を除いた高さ */
  .s7-main--wafuku-group .s7-content--movie,
  .s7-main--dress-group .s7-content--movie,
  .s7-main--other-group .s7-content--movie,
  .s7-main--movie .s7-content--movie {
    max-height: calc(100vh - 90px);
  }
}

/* ========================================================================
   CTA Section - 中央揃え
   ======================================================================== */
.cta-wedding .cta-content {
  margin-left: auto;
  margin-right: auto;
}

/* 電話で相談ボタンの視認性向上 */
.cta-wedding .btn-outline {
  background: rgba(255, 255, 255, 0.95);
  color: #3a3633;
  border: 2px solid #3a3633;
  font-weight: 500;
}

.cta-wedding .btn-outline:hover {
  background: #3a3633;
  color: #fff;
  border-color: #3a3633;
}

/* パネル部分のスクロールバーを薄い色に */
.s7-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 184, 161, 0.25) rgba(245, 243, 240, 0.3); /* 元: 0.4, 0.5 - さらに控えめに */
}

.s7-content::-webkit-scrollbar {
  width: 10px;
}

.s7-content::-webkit-scrollbar-track {
  background: rgba(245, 243, 240, 0.3); /* 元: 0.5 - より薄い背景 */
  border-radius: 10px;
}

.s7-content::-webkit-scrollbar-thumb {
  background: rgba(200, 184, 161, 0.25); /* 元: 0.4 - さらに薄いブランドカラー */
  border-radius: 10px;
  border: 2px solid rgba(245, 243, 240, 0.3);
}

.s7-content::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 184, 161, 0.45); /* 元: 0.6 - ホバー時も控えめに */
}
