/* =========================================
   Suigyoku Page - CSS Variables & Reset
   ========================================= */
:root {
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --font-h1: 64px;
    --font-h2: 36px;
    --font-p: 16px;
    --radius: 8px;
}

/* =========================================
   Suigyoku Page Body
   ========================================= */
html {
    background-color: #000;
}

body.page-template-page-suigyoku {
    margin: 0;
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: transparent;
    line-height: 1.8;
    text-align: center;
}

body.page-template-page-suigyoku img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    vertical-align: bottom;
}

body.page-template-page-suigyoku h1,
body.page-template-page-suigyoku h2,
body.page-template-page-suigyoku h3,
body.page-template-page-suigyoku p,
body.page-template-page-suigyoku ul {
    margin: 0;
    padding: 0;
}

body.page-template-page-suigyoku ul {
    list-style: none;
}

body.page-template-page-suigyoku a {
    text-decoration: none;
    color: inherit;
}

.suigyoku__container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* =========================================
   Hero Background (Fixed)
   ========================================= */
.suigyoku__hero-bg {
    display: none; /* ヒーロー画像は spacer 側で背景表示に切り替え */
}

.suigyoku__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    opacity: 1;
    transition: opacity 0.1s linear;
}

/* =========================================
   Main Content Structure
   ========================================= */
.suigyoku__main {
    position: relative;
    z-index: 1;
    background-color: transparent; /* ヒーロー背景が見えるように透明にする */
}

/* Hero Spacer (最初の1画面分) */
.suigyoku__hero-spacer {
    height: 100vh; /* ファーストビューを1画面分確保 */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000 url("../../images/suigyoku/suigyoku-hero.png") center/cover no-repeat; /* 1枚目の背景をここで表示（パス修正） */
}

.suigyoku__hero-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

/* Content Wrapper (スクロール動作用の余白エリア) */
.suigyoku__content-wrapper {
    width: 100%;
    min-height: 150vh;
    background-color: #000;
}

/* =========================================
   Sections
   ========================================= */
.suigyoku__section {
    background-color: #000;
}

.suigyoku__section .container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(80px, 10vw, 160px) clamp(16px, 5vw, 64px);
}

/* =========================================
   Section 04: 世界が注目している海洋人気の理由
   ========================================= */
/* Section 04全体のスタイル */
.suigyoku__section-04 {
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS Mincho E", serif;
    line-height: 1.8;
    text-align: left; /* セクション全体を左揃え */
    color: #fff; /* テキスト色を白に設定 */
}

/* 全体のレイアウトコンテナ */
.suigyoku__s04-container {
    max-width: 1300px; /* 横幅を広げて余裕を持たせる */
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    gap: 88px;
    align-items: center; /* 左右の要素を垂直方向に中央配置 */
}

/* 左側の画像エリア */
.suigyoku__s04-image-area {
    flex: 0.6; /* 画像エリアをさらに小さく */
    max-width: 30%; /* 幅をさらに縮小 */
}

.suigyoku__s04-image-area img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #333;
}

.suigyoku__s04-caption {
    font-size: 0.7rem;
    color: #888;
    margin-top: 5px;
}

/* 右側のテキストエリア */
.suigyoku__s04-text-area {
    flex: 1.6; /* テキストエリアをさらに広く */
    padding-top: 32px; /* 見出しと本文の間に確実な余白を作る */
}

/* 見出しのデザイン */
.suigyoku__s04-main-title {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 32px; /* タイトル下の余白を抑える */
    letter-spacing: 0.1em;
    text-align: left; /* 左揃え */
}

/* 本文のスタイル */
.suigyoku__s04-text-area p {
    font-size: 16px;
    margin-top: 32px;
    margin-bottom: 30px;
    text-align: left; /* 両端揃えから左揃えに変更 */
}

/* タイトル直下の最初の段落に確実に余白を付ける */
.suigyoku__s04-text-area p:first-of-type {
    margin-top: 32px;
}

/* チェックリストのスタイル */
.suigyoku__s04-feature-list {
    margin-top: 40px;
}

.suigyoku__s04-feature-item {
    margin-bottom: 30px;
}

.suigyoku__s04-feature-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.suigyoku__s04-feature-title::before {
    content: "✔";
    margin-right: 10px;
    font-size: 1.2em;
}

/* チェックリストの説明文を少し小さく */
.suigyoku__s04-feature-item p {
    font-size: 0.75rem;
}
.suigyoku__s04-feature-desc {
    font-size: 16px;
    color: #888;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* フェードイン表示 */
.suigyoku__s04-feature-desc.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section 05: 垂直方向中央配置、高さを60vhに変更 */
.suigyoku__section-05 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suigyoku__section-05 .suigyoku__section-image {
    margin-bottom: 24px;
}

/* Section 05のコンテナ：高さを内容に応じて自動調整 */
.suigyoku__section-05 .container {
    min-height: auto; /* 内容に応じて高さを自動調整 */
}

/* Section 06: スクロール連動画像切り替え */
.suigyoku__section-scroll-images {
    min-height: 100vh;
}

/* Section 06のコンテナ：高さに余裕を持たせる */
.suigyoku__section-scroll-images .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* SPサイズ用：1枚の画像（PCでは非表示） */
.suigyoku__section-06-sp-image {
    display: none;
}

/* PC用：3x3グリッド（デフォルトで表示） */
.suigyoku__section-06-pc-grid {
    display: block;
}

/* Section 08: PC/SPで画像切り替え */
/* PC用：1枚の画像（デフォルトで表示） */
.suigyoku__section-08-pc-image {
    display: block;
}

/* SP用：2枚の画像を縦並び（PCでは非表示） */
.suigyoku__section-08-sp-images {
    display: none;
}

/* グループごとの表示エリア */
.suigyoku__scroll-group {
    margin-bottom: 40px; /* グループ間の余白を縮小 */
    text-align: center;
}

.suigyoku__scroll-group:last-child {
    margin-bottom: 0;
}

.suigyoku__scroll-group-title {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin-bottom: clamp(48px, 6vw, 80px); /* タイトルと画像グリッドの間隔をさらに広げる */
    font-weight: 500;
    margin: 0 auto;
}

/* 画像グリッド（1行3列） */
.suigyoku__scroll-images-grid {
    width: 100%;
    max-width: 800px; /* グリッド全体の最大幅を制限 */
    margin: clamp(40px, 5vw, 40px) auto 0 auto; /* タイトルとの間に余白を確保、中央配置 */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; /* 画像間の隙間を少し狭く */
}

.suigyoku__scroll-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.suigyoku__scroll-image.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Section Title */
.suigyoku__section-title {
    font-size: var(--font-h2);
    line-height: 1.5;
    text-align: center;
    margin-bottom: clamp(64px, 8vw, 120px); /* 可変的な下マージン */
    color: #fff;
    margin: 0 auto;
}

/* Section Image */
.suigyoku__section-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: clamp(32px, 4vw, 64px); /* タイトルとの間隔を追加 */
    margin-bottom: 32px; /* 画像の下に余白を追加 */
}

.suigyoku__section-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* Section Video */
.suigyoku__video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover; /* 動画をコンテナに合わせて表示 */
}

/* Section Text */
.suigyoku__section .container .suigyoku__section-text {
    font-size: var(--font-p);
    line-height: 1.8;
    color: #fff;
    margin-top: 48px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* =========================================
   Header Override (完全非表示)
   ========================================= */
body.page-template-page-suigyoku #site-header.site-header {
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}


/* =========================================
   Responsive
   ========================================= */
@media screen and (max-width: 768px) {
    :root {
        --font-h1: 40px;
        --font-h2: 24px;
    }
    
    /* Section 04: SPサイズで縦並びに */
    .suigyoku__s04-container {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .suigyoku__s04-image-area {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .suigyoku__s04-main-title {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 32px;
    }
    
    .suigyoku__section-title {
        margin-bottom: clamp(48px, 6vw, 80px); /* SPサイズでも可変的に */
    }
    
    .suigyoku__section-text {
        margin-top: 32px;
    }
    
    /* Section 06: SPサイズでは1枚の画像に切り替え */
    .suigyoku__section-scroll-images {
        min-height: auto;
    }
    
    /* SPサイズ用：1枚の画像を表示 */
    .suigyoku__section-06-sp-image {
        display: block;
        width: 100%;
    }
    
    .suigyoku__section-06-sp-image img {
        width: 100%;
        height: auto;
        border-radius: var(--radius);
    }
    
    /* PC用：3x3グリッドを非表示 */
    .suigyoku__section-06-pc-grid {
        display: none;
    }
    
    /* セクション全体を中央寄せ */
    .suigyoku__section .container {
        text-align: center;
    }
    
    /* Section 08: SPサイズでは2枚の画像を縦並びに切り替え */
    /* PC用：1枚の画像を非表示 */
    .suigyoku__section-08-pc-image {
        display: none;
    }
    
    /* SP用：2枚の画像を縦並びで表示 */
    .suigyoku__section-08-sp-images {
        display: flex;
        flex-direction: column;
        gap: 24px; /* 画像間の余白 */
    }
    
    .suigyoku__section-08-sp-image {
        width: 100%;
        height: auto;
        border-radius: var(--radius);
    }
    
    /* Section 04: テキストも中央揃えに */
    .suigyoku__s04-container {
        align-items: center;
        text-align: center;
    }
    .suigyoku__s04-text-area,
    .suigyoku__s04-text-area p {
        text-align: center;
    }
    .suigyoku__s04-text-area {
        padding-top: 32px; /* モバイルでも見出し直下に余白を確保 */
    }
    .suigyoku__s04-text-area p:first-of-type {
        margin-top: 32px; /* モバイルでもタイトル直下に余白を強制 */
    }
    .suigyoku__s04-feature-list,
    .suigyoku__s04-feature-item,
    .suigyoku__s04-feature-title {
        text-align: center;
        align-items: center;
        justify-content: center;
    }
}

/* =========================================
   Section CTA (Button)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;400;500&display=swap');

.suigyoku__section-cta {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(64px, 10vw, 120px) clamp(24px, 6vw, 80px);
    background-color: #000;
}

.font-serif-luxury {
    font-family: 'Cinzel', serif;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    
    /* Tailwind conversions */
    color: #ffffff;
    padding: 1.5rem 4rem;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    border-radius: 24px;
    font-style: normal;
    display: inline-block; /* For <a> tag behavior */
    text-decoration: none; /* Remove underline */
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
    transform: translateY(-2px);
    opacity: 1;
    text-decoration: none;
    color: #ffffff;
}

.btn-glass:active {
    transform: translateY(0);
}

.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===================== 画像クリック可能スタイル（SP用） ===================== */
/* クリック可能な画像のホバーエフェクト（スマホサイズのみ） */
@media (max-width: 768px) {
  .suigyoku__section-08-sp-image--clickable {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .suigyoku__section-08-sp-image--clickable:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* ===================== 画像ポップアップモーダル ===================== */
/* モーダル背景（初期状態は非表示） */
.suigyoku-image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

/* モーダルが表示されている状態 */
.suigyoku-image-modal.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* モーダル内の画像 */
.suigyoku-image-modal__content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
  border-radius: 8px;
}

/* 閉じるボタン */
.suigyoku-image-modal__close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #ffffff;
  font-size: 48px;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  user-select: none;
}

.suigyoku-image-modal__close:hover,
.suigyoku-image-modal__close:focus {
  color: #bbb;
  transform: scale(1.1);
}

/* アニメーション：フェードイン */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* アニメーション：ズームイン */
@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .suigyoku-image-modal__content {
    max-width: 95%;
    max-height: 85vh;
  }
  
  .suigyoku-image-modal__close {
    top: 15px;
    right: 20px;
    font-size: 36px;
  }
}
