/*
 * トップページ専用スタイル
 */

/* トップの余白を完全に無くす */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* キービジュアル */
.key-visual {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #051538; /* 動画・ポスター前の即時ペイント（LCP/体感速度） */
}

.key-visual-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.key-visual-title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  padding: 0 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.key-visual::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 21, 56, 0.4);
  z-index: 1;
}

.line-sticky-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 90;
  display: inline-block;
  padding: 14px 24px;
  background: #06c755;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.line-sticky-btn:hover {
  opacity: 0.9;
  transform: translateX(-50%) translateY(-2px);
}

.line-sticky-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* 予約フォームセクション */
.booking-form-section {
  padding: 48px 20px 40px;
  background: #fff;
  overflow-x: hidden;
}

.booking-form-wrapper {
  max-width: 600px;
  margin: 0 auto 40px;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
}

/* スマホ時：overflow を確実に効かせる（フォーム選択後も横スクロール防止） */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  main {
    overflow-x: hidden !important;
    max-width: 100%;
  }

  .copy-section {
    overflow-x: hidden !important;
    max-width: 100%;
  }
}

/* Amelia フォーム：スマホ時のUI改善 */
@media (max-width: 767px) {
  .booking-form-section {
    padding: 32px 16px 40px;
    overflow-x: hidden !important;
    max-width: 100%;
  }

  .booking-form-wrapper {
    padding: 0 4px;
    overflow-x: hidden !important;
    max-width: 100%;
  }

  .pgs-amelia-form-inner {
    overflow-x: hidden !important;
    max-width: 100%;
  }

  .booking-form-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .booking-form-title span {
    font-size: 0.8125rem;
    display: block;
    margin-top: 4px;
  }

  .booking-form-section [class*="amelia"],
  .booking-form-section .el-date-picker,
  .booking-form-section .el-time-picker,
  .booking-form-section [class*="el-picker"],
  .booking-form-section [class*="calendar"],
  .booking-form-section [class*="date-picker"] {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* フォーム選択後のステップ（日時・顧客情報など）もはみ出さないように */
  .booking-form-section .el-date-picker,
  .booking-form-section .el-time-picker,
  .booking-form-section [class*="el-picker-panel"],
  .booking-form-section [class*="calendar"] {
    max-width: 100% !important;
  }

  /* 入力欄・選択欄を大きく（タップしやすく） */
  .booking-form-section .el-input__inner,
  .booking-form-section .el-input input,
  .booking-form-section [class*="el-input"] input,
  .booking-form-section input[type="text"],
  .booking-form-section input[type="email"],
  .booking-form-section input[type="tel"] {
    min-height: 48px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
  }

  /* ドロップダウン項目 */
  .booking-form-section .el-select-dropdown__item,
  .booking-form-section [class*="dropdown"] [class*="item"],
  .booking-form-section [class*="el-select"] [class*="item"] {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  /* ボタンを大きく */
  .booking-form-section .el-button,
  .booking-form-section [class*="amelia"] button,
  .booking-form-section [class*="el-button"] {
    min-height: 48px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
  }

  /* フォーム全体のフォントサイズ */
  .booking-form-section .pgs-amelia-form-inner,
  .booking-form-section [class*="amelia"] {
    font-size: 15px;
  }

  /* ラベル・見出しを読みやすく */
  .booking-form-section label,
  .booking-form-section [class*="label"] {
    font-size: 15px !important;
  }
}

/* Amelia フォーム UI 改善：カテゴリ・サービス一覧が多くてもはみ出さない */
/* ラッパーで確実にスクロール領域を確保 */
.booking-form-section .pgs-amelia-form-inner {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

/* Amelia のステップ要素 */
.booking-form-section .amelia-booking-step,
.booking-form-section [class*="amelia-booking-step"] {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

/* スマホ時：スクロール領域の高さ（カテゴリ・サービスを複数見えるように） */
@media (max-width: 767px) {
  .booking-form-section .pgs-amelia-form-inner,
  .booking-form-section .amelia-booking-step,
  .booking-form-section [class*="amelia-booking-step"] {
    max-height: 420px;
  }

  /* フォームエリアに視覚的な区切り */
  .booking-form-section .pgs-amelia-form-inner {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
  }
}

/* Amelia のドロップダウン/選択パネル（カテゴリ・サービス一覧）を制限 */
/* body 直下にレンダリングされる場合もあるため、複数パターンで対象 */
.booking-form-section [class*="el-popper"],
.booking-form-section [class*="el-select-dropdown"],
.booking-form-section [class*="el-picker-panel"],
.booking-form-section [class*="dropdown"],
.booking-form-section [class*="select-dropdown"],
.booking-form-section [class*="amelia"] [class*="el-popper"],
.booking-form-section [class*="amelia"] [class*="el-select-dropdown"],
.booking-form-section [class*="amelia"] [class*="dropdown"],
body [class*="amelia"] [class*="el-popper"],
body [class*="amelia"] [class*="el-select-dropdown"],
[class*="el-select-dropdown"],
[class*="el-popper"] {
  max-height: 360px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  background: #fff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* スマホ時：ドロップダウン・ポッパーも幅制限＆高さを確保（カテゴリ・サービスを複数見えるように） */
@media (max-width: 767px) {
  [class*="el-select-dropdown"],
  [class*="el-popper"],
  [class*="el-date-picker"],
  [class*="el-time-picker"] {
    max-width: calc(100vw - 32px) !important;
  }

  [class*="el-select-dropdown"],
  [class*="el-popper"] {
    max-height: 400px !important;
  }
}

/* スマホ時：ドロップダウン内の項目 */
@media (max-width: 767px) {
  [class*="el-select-dropdown"] .el-select-dropdown__item,
  [class*="el-popper"] .el-select-dropdown__item,
  [class*="el-select-dropdown"] li,
  [class*="el-popper"] [class*="item"] {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}

@media (min-width: 768px) {
  .booking-form-section [class*="el-popper"],
  .booking-form-section [class*="el-select-dropdown"],
  .booking-form-section [class*="el-picker-panel"],
  .booking-form-section [class*="dropdown"],
  .booking-form-section [class*="select-dropdown"],
  body [class*="amelia"] [class*="el-popper"],
  body [class*="amelia"] [class*="el-select-dropdown"],
  [class*="el-select-dropdown"],
  [class*="el-popper"] {
    max-height: 420px !important;
  }
}

/* スクロールバーを細く・見やすく（Webkit） */
.booking-form-section .pgs-amelia-form-inner::-webkit-scrollbar,
.booking-form-section .amelia-booking-step::-webkit-scrollbar,
.booking-form-section [class*="amelia-booking-step"]::-webkit-scrollbar {
  width: 6px;
}

.booking-form-section .pgs-amelia-form-inner::-webkit-scrollbar-track,
.booking-form-section .amelia-booking-step::-webkit-scrollbar-track,
.booking-form-section [class*="amelia-booking-step"]::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.booking-form-section .pgs-amelia-form-inner::-webkit-scrollbar-thumb,
.booking-form-section .amelia-booking-step::-webkit-scrollbar-thumb,
.booking-form-section [class*="amelia-booking-step"]::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.booking-form-section .pgs-amelia-form-inner::-webkit-scrollbar-thumb:hover,
.booking-form-section .amelia-booking-step::-webkit-scrollbar-thumb:hover,
.booking-form-section [class*="amelia-booking-step"]::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* PC時：内側の max-height を外し、下部のボタンを常にコンテナ内で表示（横スクロールも抑制） */
@media (min-width: 768px) {
  .booking-form-section .pgs-amelia-form-inner,
  .booking-form-section .amelia-booking-step,
  .booking-form-section [class*="amelia-booking-step"] {
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
  }

  /* Element UI の el-row 負マージンによるページ全体の横スクロール防止 */
  .booking-form-section [class*="amelia"] .el-row,
  .booking-form-section [class*="amelia"] [class*="el-row"],
  .pgs-amelia-form-inner .el-row,
  .pgs-amelia-form-inner [class*="el-row"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
  }

  .booking-form-section [class*="amelia"] .el-col,
  .booking-form-section [class*="amelia"] [class*="el-col"],
  .pgs-amelia-form-inner .el-col,
  .pgs-amelia-form-inner [class*="el-col"] {
    max-width: 100%;
  }

  /* Amelia / Element の幅固定要素をラッパーに収める */
  .booking-form-section [class*="amelia"],
  .booking-form-section #amelia-app-booking,
  .booking-form-section [id*="amelia"] {
    max-width: 100%;
    min-width: 0;
  }

  .booking-form-wrapper {
    overflow-x: hidden;
  }
}

.booking-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #051538;
  text-align: center;
  margin-bottom: 24px;
}

.booking-form-title span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #666;
}

.copy-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.copy-main {
  font-size: 1.25rem;
  font-weight: 600;
  color: #051538;
  line-height: 1.8;
  margin-bottom: 16px;
}

.copy-sub {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.8;
}

/* WHAT WE DO / WE CAN HELP YOU スライドショー */
.whatwedo-section,
.wecanhelpyou-section {
  padding: 48px 0 40px;
  background: #f8f9fa;
}

.whatwedo-title,
.wecanhelpyou-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #051538;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.whatwedo-slideshow,
.wecanhelpyou-slideshow {
  position: relative;
  max-width: 900px;
  margin: 0 auto 24px;
  overflow: hidden;
}

.slideshow-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-lines {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slideshow-line {
  width: 40px;
  height: 4px;
  background: #ccc;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.slideshow-line.active {
  background: #c9a227;
}

.slideshow-line:hover {
  background: #999;
}

.slideshow-line.active:hover {
  background: #c9a227;
}

/* WE CAN HELP YOU 追加要素 */
.wecanhelpyou-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #051538;
  text-align: center;
  margin-bottom: 24px;
}

.wecanhelpyou-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 20px;
}

.wecanhelpyou-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wecanhelpyou-box-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.wecanhelpyou-box-text {
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.wecanhelpyou-cta {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.wecanhelpyou-cta-arrow {
  margin-bottom: 16px;
}

.wecanhelpyou-cta-arrow img {
  width: 32px;
  height: auto;
}

.wecanhelpyou-cta-gold-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #c9a227;
  margin-bottom: 12px;
}

.wecanhelpyou-cta-white-text {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* PGSとは？ */
.pgs-about-section {
  padding: 48px 20px;
  background: #fff;
}

.pgs-about-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #051538;
  text-align: center;
  margin-bottom: 24px;
}

.pgs-about-text {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 24px;
  text-align: center;
}

.pgs-services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.pgs-services-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: #051538;
}

.pgs-check {
  width: 20px;
  height: 20px;
}

/* REASON WHY */
.reasonwhy-section {
  padding: 48px 20px;
  background: linear-gradient(135deg, #051538 0%, #0a2a5c 100%);
  color: #fff;
}

.reasonwhy-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.reasonwhy-subtitle {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 24px;
  opacity: 0.9;
}

.reasonwhy-list {
  list-style: none;
  max-width: 500px;
  margin: 0 auto;
}

.reasonwhy-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.reasonwhy-list li:last-child {
  border-bottom: none;
}

.reasonwhy-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* OUR SERVICE */
.ourservice-section {
  padding: 48px 20px;
  background: #fff;
}

.ourservice-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #051538;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.ourservice-subtitle {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin-bottom: 32px;
}

.ourservice-image {
  max-width: 600px;
  margin: 0 auto 16px;
}

.ourservice-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.ourservice-item {
  max-width: 600px;
  margin: 0 auto 40px;
}

.ourservice-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #051538;
  margin-bottom: 8px;
}

.ourservice-item-text {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* MAY I HELP YOU? */
.mayihelpyou-section {
  padding: 48px 20px;
  background: #f8f9fa;
}

.mayihelpyou-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #051538;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.mayihelpyou-subtitle {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin-bottom: 32px;
}

.pricing-cases {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.pricing-case {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pricing-case-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pricing-case-icon-img {
  width: 40px;
  height: 40px;
}

.pricing-case-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c9a227;
  letter-spacing: 0.05em;
}

.pricing-case-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #051538;
  margin-bottom: 16px;
  line-height: 1.5;
}

.pricing-case-section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.pricing-case-list {
  list-style: none;
  margin-bottom: 16px;
}

.pricing-case-list li {
  font-size: 0.9375rem;
  color: #555;
  padding: 4px 0;
  padding-left: 1.25em;
  position: relative;
}

.pricing-case-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #c9a227;
}

.pricing-case-price {
  margin-bottom: 16px;
}

.pricing-case-amount {
  font-size: 1.125rem;
  font-weight: 600;
  color: #051538;
  margin: 0;
}

.pricing-case-tagline {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.pricing-note,
.pricing-plan {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* 動画セクション */
.video-section-wrapper {
  background: #051538;
}

.video-section {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.video-section-video {
  width: 100%;
  height: auto;
  display: block;
}

/* ANY QUESTIONS? FAQ */
.anyquestions-section {
  padding: 48px 20px;
  background: #fff;
}

.anyquestions-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #051538;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.anyquestions-subtitle {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin-bottom: 32px;
}

.faq-accordion {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #051538;
  text-align: left;
  transition: opacity 0.2s ease;
}

.faq-question:hover {
  opacity: 0.8;
}

.faq-question-text {
  flex: 1;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: #c9a227;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.7;
  padding: 0 0 20px;
  margin: 0;
}

@media (min-width: 768px) {
  .line-sticky-btn {
    left: auto;
    right: 24px;
    transform: none;
  }

  .line-sticky-btn:hover {
    transform: translateY(-2px);
  }

  .key-visual-title {
    font-size: 1.75rem;
  }

  .wecanhelpyou-boxes {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-cases {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pricing-case {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
  }
}

/* PC時：フォームセクションを目立たせる */
@media (min-width: 1024px) {
  .booking-form-section {
    padding: 80px 40px 64px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    position: relative;
  }

  .booking-form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9a227 0%, #e6c04a 50%, #c9a227 100%);
  }

  .booking-form-wrapper {
    max-width: 680px;
    margin: 0 auto 48px;
    padding: 40px 48px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
      0 8px 32px rgba(5, 21, 56, 0.1),
      0 2px 8px rgba(5, 21, 56, 0.06);
    border: 1px solid rgba(5, 21, 56, 0.06);
  }

  .booking-form-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }

  .booking-form-title span {
    font-size: 1rem;
    color: #64748b;
  }
}
