/**
 * ご利用の流れページ - ラグジュアリーデザイン
 * テンプレート専用CSS
 */

/* ========================================
   CSS変数 - カラースキーム
   ======================================== */

:root {
  --luxury-gold: #D4AF37;
  --luxury-dark: #2C2C2C;
  --luxury-text: #333333;
  --luxury-bg: #FAFAFA;
}

/* ========================================
   ページ全体の設定
   ======================================== */

.page-flow-template {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--luxury-text);
}

/* ========================================
   ヒーローセクション（Coverブロック）
   ======================================== */

.page-flow-template .wp-block-cover {
  min-height: 70vh !important;
}

.page-flow-template .wp-block-cover__background {
  opacity: 0.5 !important;
}

.page-flow-template .wp-block-cover h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.page-flow-template .wp-block-cover p {
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 300;
  letter-spacing: 0.1em;
}

/* ========================================
   見出しスタイル
   ======================================== */

.page-flow-template h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--luxury-dark);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  position: relative;
  text-align: center;
}

.page-flow-template h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--luxury-gold) 50%,
    transparent 100%
  );
}

.page-flow-template h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--luxury-dark);
  margin: 0 0 1.5rem 0;
}

.page-flow-template h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--luxury-dark);
  margin: 0 0 1rem 0;
}

/* ========================================
   STEPブロック
   ======================================== */

.page-flow-template .swell-block-step {
  margin: 4rem 0;
}

.page-flow-template .step-item {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-left: 4px solid var(--luxury-gold);
}

.page-flow-template .step-item:hover {
  transform: translateX(8px);
  box-shadow: 0 15px 50px rgba(212, 175, 55, 0.25);
}

/* ステップ間の矢印 */
.page-flow-template .step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3.5rem;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid var(--luxury-gold);
  animation: float 2s ease-in-out infinite;
  opacity: 0.8;
  filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

/* ふわふわアニメーション */
@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
  }
}

.page-flow-template .step-number {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: white;
  background: linear-gradient(135deg, var(--luxury-dark) 0%, #1a1a1a 100%);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-flow-template .step-content h3 {
  font-size: clamp(20px, 4vw, 26px);
  margin-bottom: 1.5rem;
  color: var(--luxury-dark);
  position: relative;
  padding-bottom: 1rem;
}

.page-flow-template .step-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--luxury-gold);
}

.page-flow-template .step-content > p {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.page-flow-template .step-content ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.page-flow-template .step-content ul li {
  position: relative;
  padding-left: 2em;
  line-height: 2;
  margin-bottom: 0.8rem;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.page-flow-template .step-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  background: var(--luxury-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.page-flow-template .step-content .note {
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid var(--luxury-gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 2;
}

.page-flow-template .step-content .note strong {
  color: var(--luxury-dark);
  font-size: 16px;
  display: block;
  margin-bottom: 0.5rem;
}

/* 画像プレースホルダー */
.page-flow-template .image-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.page-flow-template .image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   テーブルスタイル
   ======================================== */

.page-flow-template .wp-block-table {
  margin: 3rem 0;
}

.page-flow-template .wp-block-table table {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-collapse: separate;
  border-spacing: 0;
}

.page-flow-template .wp-block-table thead tr {
  background: var(--luxury-dark);
  color: white;
}

.page-flow-template .wp-block-table thead th {
  padding: 1.5rem 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 15px;
  text-align: left;
}

.page-flow-template .wp-block-table tbody td {
  padding: 1.5rem 2rem;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-flow-template .wp-block-table tbody tr:nth-child(even) {
  background: rgba(212, 175, 55, 0.05);
}

.page-flow-template .wp-block-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* ========================================
   アメニティSwiper
   ======================================== */

.page-flow-template .amenities-swiper-wrapper {
  margin-top: 4rem;
  position: relative;
  padding: 0 60px;
}

.page-flow-template .amenities-swiper {
  overflow: visible;
  padding: 20px 0 60px;
}

.page-flow-template .amenity-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-flow-template .swiper-slide:hover .amenity-card {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

.page-flow-template .amenity-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f5f5f5;
}

.page-flow-template .amenity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.page-flow-template .swiper-slide:hover .amenity-image img {
  transform: scale(1.1);
}

.page-flow-template .amenity-content {
  padding: 2.5rem 2rem;
  flex: 1;
}

.page-flow-template .amenity-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--luxury-dark);
  margin: 0 0 1.2rem 0;
  position: relative;
  padding-bottom: 1rem;
}

.page-flow-template .amenity-content h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--luxury-gold);
}

.page-flow-template .amenity-content p {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #666;
  margin: 0;
}

/* Swiperナビゲーション - アメニティ */
.page-flow-template .amenities-swiper .swiper-button-next,
.page-flow-template .amenities-swiper .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.page-flow-template .amenities-swiper .swiper-button-next::after,
.page-flow-template .amenities-swiper .swiper-button-prev::after {
  font-size: 18px;
  color: var(--luxury-gold);
  font-weight: bold;
}

.page-flow-template .amenities-swiper .swiper-button-next:hover,
.page-flow-template .amenities-swiper .swiper-button-prev:hover {
  background: var(--luxury-gold);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
}

.page-flow-template .amenities-swiper .swiper-button-next:hover::after,
.page-flow-template .amenities-swiper .swiper-button-prev:hover::after {
  color: white;
}

.page-flow-template .amenities-swiper .swiper-pagination {
  bottom: 20px;
}

.page-flow-template .amenities-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--luxury-dark);
  opacity: 0.3;
}

.page-flow-template .amenities-swiper .swiper-pagination-bullet-active {
  background: var(--luxury-gold);
  opacity: 1;
  width: 30px;
  border-radius: 5px;
}

/* レスポンシブ - アメニティSwiper */
@media (max-width: 768px) {
  .page-flow-template .amenities-swiper-wrapper {
    padding: 0 20px;
  }

  .page-flow-template .amenity-image {
    height: 220px;
  }

  .page-flow-template .amenity-content {
    padding: 2rem 1.5rem;
  }

  .page-flow-template .amenities-swiper .swiper-button-next,
  .page-flow-template .amenities-swiper .swiper-button-prev {
    display: none;
  }
}

/* ========================================
   カラムレイアウト
   ======================================== */

.page-flow-template .wp-block-columns {
  gap: 3rem !important;
  margin-top: 3rem !important;
}

.page-flow-template .wp-block-column {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.page-flow-template .wp-block-column:hover {
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);
}

/* ========================================
   SWELLボックスブロック
   ======================================== */

.page-flow-template .swell-block-box {
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.page-flow-template .swell-block-box strong {
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--luxury-dark);
}

.page-flow-template .swell-block-box ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.page-flow-template .swell-block-box ul li {
  position: relative;
  padding-left: 2em;
  line-height: 2;
  margin-bottom: 0.8rem;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.page-flow-template .swell-block-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 6px;
  background: var(--luxury-gold);
  border-radius: 50%;
}

/* ========================================
   CTAボタン
   ======================================== */

.page-flow-template .swell-block-cta {
  margin: 4rem 0;
  padding: 4rem 2rem;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.1) 100%);
  border: 2px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.page-flow-template .cta-button {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 1.8rem 4.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
  color: white;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.page-flow-template .cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.page-flow-template .cta-button:hover::before {
  width: 500px;
  height: 500px;
}

.page-flow-template .cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--luxury-gold);
  color: white;
}

/* ========================================
   リストスタイル
   ======================================== */

.page-flow-template ul {
  list-style: none;
  padding-left: 0;
}

.page-flow-template ul li {
  position: relative;
  padding-left: 2em;
  line-height: 2;
  margin-bottom: 1rem;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.page-flow-template ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  background: var(--luxury-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* ========================================
   レスポンシブ
   ======================================== */

@media (max-width: 768px) {
  .page-flow-template .step-item {
    padding: 2rem 1.5rem;
  }

  .page-flow-template .step-number {
    font-size: 12px;
    padding: 0.6rem 1.5rem;
  }

  .page-flow-template .image-placeholder {
    height: 200px;
  }

  .page-flow-template .wp-block-table thead th,
  .page-flow-template .wp-block-table tbody td {
    padding: 1rem 1.5rem;
    font-size: 14px;
  }

  .page-flow-template .swell-block-box {
    padding: 1.5rem;
  }
}

/* ========================================
   320px幅対応 - 超小型スマートフォン
   ======================================== */

@media (max-width: 375px) {
  /* ヒーローセクション調整 */
  .page-flow-template .wp-block-cover {
    min-height: 60vh !important;
  }

  .page-flow-template .wp-block-cover h1 {
    font-size: 2rem !important;
    letter-spacing: 0.1em !important;
    padding: 0 15px !important;
    word-break: keep-all;
  }

  .page-flow-template .wp-block-cover p {
    font-size: 0.85rem !important;
    padding: 0 15px !important;
  }

  /* 見出しサイズ調整 */
  .page-flow-template h2 {
    font-size: 1.5rem !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
  }

  .page-flow-template h3 {
    font-size: 1.2rem !important;
    letter-spacing: 0.05em !important;
  }

  .page-flow-template h4 {
    font-size: 1rem !important;
  }

  /* STEPブロック調整 */
  .page-flow-template .swell-block-step {
    margin: 2rem 0;
  }

  .page-flow-template .step-item {
    padding: 1.5rem 1rem !important;
    margin-bottom: 3.5rem;
    border-left-width: 3px;
  }

  .page-flow-template .step-item:not(:last-child)::after {
    bottom: -2.5rem;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--luxury-gold);
  }

  .page-flow-template .step-number {
    font-size: 11px !important;
    padding: 0.6rem 1.2rem !important;
    margin-bottom: 1.2rem;
  }

  .page-flow-template .step-content h3 {
    font-size: 1.15rem !important;
    margin-bottom: 1rem !important;
  }

  .page-flow-template .step-content > p {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  .page-flow-template .step-content ul {
    margin: 1rem 0;
  }

  .page-flow-template .step-content ul li {
    font-size: 13px !important;
    padding-left: 1.5em;
    margin-bottom: 0.6rem;
  }

  .page-flow-template .step-content ul li::before {
    width: 6px;
    height: 6px;
  }

  .page-flow-template .step-content .note {
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    font-size: 12px;
  }

  .page-flow-template .step-content .note strong {
    font-size: 14px;
  }

  /* 画像プレースホルダー調整 */
  .page-flow-template .image-placeholder {
    height: 180px !important;
    margin: 1.5rem 0;
  }

  /* テーブル調整 */
  .page-flow-template .wp-block-table thead th,
  .page-flow-template .wp-block-table tbody td {
    padding: 0.8rem 1rem !important;
    font-size: 12px !important;
  }

  /* アメニティSwiper調整 */
  .page-flow-template .amenities-swiper-wrapper {
    padding: 0 10px !important;
    margin-top: 2rem;
  }

  .page-flow-template .amenity-image {
    height: 180px !important;
  }

  .page-flow-template .amenity-content {
    padding: 1.5rem 1rem !important;
  }

  .page-flow-template .amenity-content h4 {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }

  .page-flow-template .amenity-content p {
    font-size: 13px !important;
    line-height: 1.8 !important;
  }

  /* カラム調整 */
  .page-flow-template .wp-block-columns {
    gap: 1.5rem !important;
    margin-top: 2rem !important;
  }

  .page-flow-template .wp-block-column {
    padding: 1.5rem 1rem !important;
  }

  /* ボックス調整 */
  .page-flow-template .swell-block-box {
    padding: 1.2rem !important;
    margin: 2rem 0;
  }

  .page-flow-template .swell-block-box strong {
    font-size: 15px;
  }

  .page-flow-template .swell-block-box ul li {
    font-size: 13px;
    padding-left: 1.5em;
  }

  /* CTA調整 */
  .page-flow-template .swell-block-cta {
    padding: 2rem 1rem;
    margin: 3rem 0;
  }

  .page-flow-template .cta-button {
    font-size: 14px !important;
    padding: 1rem 2rem !important;
  }

  /* リスト調整 */
  .page-flow-template ul li {
    font-size: 14px !important;
    padding-left: 1.5em;
    margin-bottom: 0.8rem;
  }

  .page-flow-template ul li::before {
    width: 6px;
    height: 6px;
  }
}

/* 320px幅での特別な調整 */
@media (max-width: 320px) {
  .page-flow-template .wp-block-cover h1 {
    font-size: 1.7rem !important;
  }

  .page-flow-template h2 {
    font-size: 1.3rem !important;
  }

  .page-flow-template h3 {
    font-size: 1.1rem !important;
  }

  .page-flow-template .step-item {
    padding: 1.2rem 0.8rem !important;
  }

  .page-flow-template .step-content .note {
    padding: 0.8rem 1rem;
  }

  .page-flow-template .amenity-content {
    padding: 1.2rem 0.8rem !important;
  }

  .page-flow-template .wp-block-column {
    padding: 1.2rem 0.8rem !important;
  }

  .page-flow-template .cta-button {
    font-size: 13px !important;
    padding: 0.9rem 1.5rem !important;
  }
}
