@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Lato:wght@300;400&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lato', sans-serif;
  background: #f5f0eb;
  color: #3a3a3a;
  min-height: 100vh;
}

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
  position: relative;
  border: 12px solid #191970;
  box-sizing: border-box;
  overflow: hidden;
}

/* トップページ以外の共通背景：右上にロゴを大きく配置（少し見切れ） */
.page-wrap::before {
  content: '';
  position: absolute;
  top: 56px; /* 上部固定ナビバーの下を基準にする */
  right: 0;
  width: 70%;
  aspect-ratio: 1 / 1;
  background: url('logo.png') no-repeat center / contain;
  transform: translate(20%, -20%);
  /* 紺色のロゴをシアンに変換（白背景は白のまま）、淡めに表示 */
  filter: hue-rotate(-48deg) saturate(6) brightness(2.4);
  opacity: 0.8;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.page-wrap.top::before { content: none; }

/* トップページのみグラデーション背景 */
.page-wrap.top {
  background: linear-gradient(to bottom, #00FFFF 0%, #d4f1f9 25%, #fce4ec 60%, #e8f5e9 100%);
  border: none;
}

/* ===== COLORS ===== */
:root {
  --pink: #e91e8c;
  --pink-light: #f9c6d0;
  --pink-pale: #fce4ec;
  --blue: #1976d2;
  --blue-light: #c8dff5;
  --blue-pale: #e3f2fd;
  --green: #388e3c;
  --green-light: #c8e6c9;
  --green-pale: #e8f5e9;
  --text: #3a3a3a;
  --text-muted: #777;
  --border: #f0c0d0;
  --bg: #faf7f4;
  --white: #ffffff;
}

/* ===== TOP NAV BAR ===== */
.top-nav-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 300;
  background: #191970;
  border-bottom: none;
  backdrop-filter: none;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  height: 56px;
}

.top-nav-bar::-webkit-scrollbar { display: none; }

.top-nav-pill {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  color: white;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  display: inline-block;
  height: 56px;
  line-height: 56px;
  transition: background 0.2s;
}

.top-nav-pill:hover {
  background: rgba(255,255,255,0.15);
}

.top-nav-pill.active {
  background: white;
  color: #191970;
}

.nav-icon-box {
  background: white;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
}

.menu-btn {
  background: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  color: #191970;
  padding: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  flex-shrink: 0;
  line-height: 1;
}

.dropdown-menu {
  position: fixed;
  top: 56px;
  right: calc(50% - min(600px, 50vw));
  width: min(220px, 100vw);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  background: #191970;
  border: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 299;
  padding: 6px 0;
  display: none;
}

.dropdown-menu.open { display: block; }

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(255,255,255,0.15); }

.page-content {
  position: fixed;
  top: 56px;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.page-content::-webkit-scrollbar { display: none; }

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #3a3a3a;
  padding: 2px 4px;
  flex-shrink: 0;
  line-height: 1;
}

/* ===== HEADER ===== */
.header {
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-logo {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.header-back {
  font-size: 13px;
  color: var(--pink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, var(--pink-light) 0%, var(--blue-light) 60%, var(--green-light) 100%);
  padding: 40px 24px 32px;
  text-align: center;
}

.hero-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 13px;
  color: #555;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

/* ===== HERO SLIDER ===== */
.slider-frame {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* センターモード：中央に現在の写真、左右に前後の写真の端が見える */
.slider-track {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide {
  flex: 0 0 80%;
}

.slide img {
  width: 100%;
  aspect-ratio: 3 / 2; /* 全スライドの縦横比を統一（はみ出す部分はクロップ） */
  object-fit: cover;
  display: block;
}

/* ===== PHOTO PLACEHOLDER ===== */
.photo-box {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f48fb1 0%, #90caf9 50%, #a5d6a7 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.photo-box span {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
}

.photo-box.small {
  height: 160px;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 0;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  letter-spacing: 1.5px;
  cursor: pointer;
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
}

.btn-primary:active { opacity: 0.9; }

/* 広い画面でボタンが間延びしないよう幅を制限 */
.page-content .btn-primary,
.fixed-bar .btn-primary {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-outline {
  background: white;
  color: var(--pink);
  border: 1.5px solid var(--pink);
  border-radius: 50px;
  padding: 13px 0;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
}

/* ===== NAV BUTTONS ===== */
.nav-list {
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-btn {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  width: 100%;
}

.nav-btn .arrow { color: var(--pink); font-size: 20px; }
.nav-btn.blue { border-color: #b3d1f0; }
.nav-btn.blue .arrow { color: var(--blue); }
.nav-btn.green { border-color: #b2d8b4; }
.nav-btn.green .arrow { color: var(--green); }

/* ===== FIXED BOTTOM BAR ===== */
.fixed-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(255,255,255,0.5);
  /* ページ枠と同じ紺色の縦枠 */
  border-left: 12px solid #191970;
  border-right: 12px solid #191970;
  padding: 10px 20px;
  z-index: 200;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* トップページは枠なしデザインのため縦枠も付けない */
.page-wrap.top .fixed-bar {
  border-left: none;
  border-right: none;
}

.fixed-bar .btn-primary {
  flex: 1;
  margin: 0;
}

.fixed-bar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.fixed-bar-icon:active { opacity: 0.85; }
.fixed-bar-icon.wa { background: #25D366; }
.fixed-bar-icon.mail { background: #191970; }

/* ===== SECTION ===== */
.section {
  padding: 24px 20px;
}

/* トップ以外：文章の下に背景ロゴがうっすら透ける半透明の枠を敷く */
.page-wrap:not(.top) .section {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  margin: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ===== CARD ===== */
.card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.card-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== PRICE TABLE ===== */
.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table tr {
  border-bottom: 1px solid #f5e0e8;
}

.price-table tr:last-child {
  border-bottom: none;
}

.price-table td {
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.5;
}

.price-table td:last-child {
  text-align: right;
  color: var(--pink);
  font-weight: 400;
  white-space: nowrap;
  padding-left: 8px;
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  background: #c6f6ff; /* パネル透過後のシアン */
  color: #191970;      /* 上部バーと同色の紺 */
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.badge.blue {
  background: var(--blue-pale);
  color: var(--blue);
}

.badge.green {
  background: var(--green-pale);
  color: var(--green);
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: white;
  appearance: none;
  -webkit-appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e91e8c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-textarea {
  height: 80px;
  resize: none;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.form-check input {
  margin-top: 2px;
  accent-color: var(--pink);
}

.form-check label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid #f5e0e8;
  margin: 20px 0;
}

/* ===== NOTICE BOX ===== */
.notice {
  background: var(--blue-pale);
  border: 1px solid #b3d1f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px;
  color: var(--blue);
  line-height: 1.7;
  margin: 16px 0;
}

.notice.pink {
  background: var(--pink-pale);
  border-color: var(--border);
  color: var(--pink);
}

.notice.green {
  background: var(--green-pale);
  border-color: #b2d8b4;
  color: var(--green);
}

/* ===== STEP INDICATOR ===== */
.step-bar {
  display: flex;
  gap: 4px;
  padding: 16px 20px 0;
}

.step-dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: #f5e0e8;
}

.step-dot.active {
  background: var(--pink);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid #f5e0e8;
  padding: 16px 0;
}

.faq-q {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== TOTAL BOX ===== */
.total-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  color: var(--text-muted);
}

.total-row.final {
  border-top: 1px solid #f5e0e8;
  margin-top: 8px;
  padding-top: 14px;
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
}

.total-row.deposit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #f5e0e8;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-icon.email { background: var(--pink-pale); }
.contact-icon.wa { background: var(--green-pale); }

.contact-label { font-size: 11px; color: var(--text-muted); }
.contact-value { font-size: 13px; color: var(--text); }

/* ===== レスポンシブ =====
   注意: 基本ルールを上書きするため、必ずファイル末尾に置くこと */
@media (max-width: 430px) {
  .page-wrap {
    max-width: 100%;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  .top-nav-bar {
    max-width: 100%;
    left: 0;
    transform: none;
  }
  .page-content {
    max-width: 100%;
    left: 0;
    transform: none;
  }
  .fixed-bar {
    max-width: 100%;
    left: 0;
    transform: none;
    border-left: none;
    border-right: none;
  }
  .dropdown-menu {
    right: 0;
  }
}

@media (min-width: 431px) and (max-width: 768px) {
  .page-wrap {
    max-width: 768px;
  }
  .section-title { font-size: 20px; }
  .card-body { font-size: 15px; }
}

@media (min-width: 769px) {
  /* PCでは画面幅の60%で中央表示 */
  .page-wrap {
    max-width: 60vw;
    border: 12px solid #191970;
  }
  .page-wrap.top { border: none; }
  .top-nav-bar {
    max-width: 60vw;
  }
  .page-content {
    max-width: 60vw;
  }
  .fixed-bar {
    max-width: 60vw;
  }
  /* トップ以外のページ：枠は本文46%＋右メニュー16%を含む幅にする */
  .page-wrap:not(.top),
  .page-wrap:not(.top) .top-nav-bar,
  .page-wrap:not(.top) .page-content,
  .page-wrap:not(.top) .fixed-bar {
    max-width: 66vw;
  }
  /* 本文パネルは読みやすい幅（画面の約46%）で枠内の左側に配置 */
  .page-wrap:not(.top) .section {
    max-width: 46vw;
    margin: 16px auto 16px 16px;
  }
  /* PCではハンバーガーの代わりに、右側余白へコンテンツリストを常時表示 */
  .menu-btn {
    display: none !important; /* インラインstyleのdisplay指定を上書き */
  }
  .dropdown-menu {
    display: block;
    top: 130px;
    left: auto;
    right: calc(50% - 33vw + 16px); /* 枠（66vw）の内側右端に配置 */
    width: min(260px, 16vw);
    max-height: calc(100vh - 200px);
    /* 本文と同じ半透明パネル */
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: none;
    padding: 8px 0;
  }
  .dropdown-menu a {
    color: #555;
    border-bottom: none;
    padding: 8px 16px;
    font-size: 13px;
    line-height: 1.5;
  }
  .dropdown-menu a:hover {
    background: transparent;
    color: #191970;
    font-weight: 700;
  }
  /* トップページは右側リストなし。従来のハンバーガー＋ドロップダウンを使う */
  .page-wrap.top .menu-btn {
    display: inline-flex !important;
  }
  .page-wrap.top .dropdown-menu {
    display: none;
    top: 56px;
    left: auto;
    right: calc(50% - 30vw);
    width: 220px;
    background: #191970;
    border-left: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    padding: 6px 0;
  }
  .page-wrap.top .dropdown-menu.open {
    display: block;
  }
  .page-wrap.top .dropdown-menu a {
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .page-wrap.top .dropdown-menu a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    font-weight: 400;
  }
  /* PCではスライダー写真を小さく・余白を詰めて、ナビボタンまで1画面に収める */
  .slide {
    flex: 0 0 38%;
  }
  .hero-top {
    padding: 14px 24px 10px !important;
  }
  .nav-btn {
    padding: 11px 20px;
  }
  .section-title { font-size: 22px; }
  .card-body { font-size: 15px; }
  .btn-primary { font-size: 16px; padding: 16px 0; }
  .section { padding: 28px 24px; }
  .nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 32px;
  }
}
