@charset "UTF-8";

/* =========================================
   1. 上下のレイアウト・余白の整合
   ========================================= */

/* nabe2.cssのmargin-top(97px)を打ち消し、システムのpaddingだけに任せる */
.taya-lp.seigaiha-special {
    margin-top: 0 !important;
}

/* 全体の下マージンを消してフッターに密着させる */
.taya-lp {
    margin-bottom: 0 !important;
}

/* =========================================
   2. 地紋の「はみ出し」を物理的にカット
   ========================================= */

.seigaiha-history {
    background-color: #f8f6f1; 
    background-image:
        radial-gradient(circle at 50% 100%, transparent 45%, #f3f1e9 45.5%, #f3f1e9 49%, transparent 49.5%),
        radial-gradient(circle at 50% 100%, transparent 45%, #f3f1e9 45.5%, #f3f1e9 49%, transparent 49.5%);
    background-size: 100px 50px;
    background-position: 0 0, 50px 25px;
    background-repeat: repeat; 
    padding: 80px 0;
    position: relative;

    /* --- ここが最重要：飛び出している地紋を切り落とす --- */
    display: block;
    overflow: hidden; 
    margin-bottom: 0 !important;
}

/* =========================================
   3. フッターの保護（模様を絶対に入れない）
   ========================================= */

#footer, footer {
    background-image: none !important;
    background-color: #fff !important;
    position: relative;
    z-index: 10; /* 地紋より上の階層に重ねる */
}

/* 特集内の最後のセクションの下余白 */
.taya-lp section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 80px; 
}

/* =========================================
   4. 装飾・その他
   ========================================= */

.seigaiha-special { --taya-gold: #96844d; }

/* キャプションを写真の左側に固定する */
.seigaiha-special .main-visual .caption {
    /* 1. 上下位置：下から15%の位置に固定 */
    top: auto !important;
    bottom: 15% !important;

    /* 2. 左右位置：中央揃えを解除し、左端から「5%」浮かせる */
    left: 5% !important;
    right: auto !important;
    transform: none !important; /* 真ん中に戻す命令を完全に消す */

    /* 3. 帯のサイズ：文字に合わせる */
    display: inline-block !important;
    width: auto !important;
    max-width: 90%;
    
    /* 4. 中の文字の揃え：左揃え */
    text-align: left !important;
    white-space: nowrap;

    /* 装飾 */
    padding: 15px 30px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px);
    border-radius: 4px;
}

/* スマホでは中央にしたい、または左に詰めたい場合の調整 */
@media screen and (max-width: 768px) {
    .seigaiha-special .main-visual .caption {
        left: 5% !important;
        width: 85% !important;
        white-space: normal;
        bottom: 10% !important;
    }
}

/* スマホでは文字が長いとはみ出すので、改行を許可する */
@media screen and (max-width: 768px) {
    .seigaiha-special .main-visual .caption {
        white-space: normal;
        bottom: 10% !important;
        width: 85% !important;
    }
}

.seigaiha-special .column-header { padding: 60px 0 20px; background: #e7e7b9; }
.bg-subtle { background-color: #f9f9f7; padding: 60px 0; }

.seigaiha-special .caption {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    margin-top: 8px;
}

.seigaiha-history .block-text {
    background: rgba(255, 255, 255, 0.65); 
    padding: 30px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

@media screen and (max-width: 768px) {
    /* リード文のテキストを中央に */
    .seigaiha-special .h1-lead {
        text-align: center !important;
        padding: 0 15px !important; /* 左右に少し余白を作ると読みやすくなります */
        font-size: 14px !important;  /* スマホで見やすいサイズに調整 */
        line-height: 1.8 !important;
    }

    /* もし大見出し（H1）も左に寄っているなら、ついでに中央へ */
    .seigaiha-special .block-text h1 {
        text-align: center !important;
    }
}

/* 拡大用モーダルのスタイル */
.nabe-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  cursor: zoom-out;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  animation: zoom 0.3s;
}

#modalCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 20px 0;
  font-size: 14px;
}

@keyframes zoom {
  from {transform:scale(0.8)} 
  to {transform:scale(1)}
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* 拡大可能な画像にカーソルを合わせると虫眼鏡にする */
.block-visual img {
  cursor: zoom-in;
  transition: opacity 0.3s;
}
.block-visual img:hover {
  opacity: 0.8;
}

/* 通常は虫眼鏡 */
.block-visual img {
  cursor: zoom-in;
}

/* no-zoomが付いている時は通常の矢印 */
.block-visual img.no-zoom {
  cursor: default;
}
.block-visual img.no-zoom:hover {
  opacity: 1; /* ホバーで薄くならないようにする */
}

/* モーダル内のテキスト全体 */
#modalCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #eeeeee; /* テキストを明るいグレーに */
  padding: 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

/* モーダル内のリンク文字だけを白（または明るい色）にする */
#modalCaption a {
  color: #ffffff !important; /* 強制的に白に */
  text-decoration: underline; /* リンクとわかるように下線を引く */
  transition: opacity 0.3s;
}

/* ホバーした時は少し透過させる */
#modalCaption a:hover {
  opacity: 0.7;
}

@media screen and (max-width: 767px) {
  /* 1. 親要素の横揺れカット */
  .seigaiha-history {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  /* 2. リードの帯も文章もすべて幅90%で中央寄せ */
  .seigaiha-history .block,
  .seigaiha-history .column-header,
  .seigaiha-history .block-2col {
    width: 90% !important; 
    margin-left: auto !important; 
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
    float: none;
  }

  /* 3. ブロック内の文字の読みやすさ調整 */
  .block-text {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
  }

  /* 4. リード文の微調整 */
  .nabe-h3-lead-center {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0 10px !important;
    text-align: justify;
  }

  /* 5. 画像のはみ出し強制防止 */
  .seigaiha-history img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* --- 青海波特集専用：MV演出スタイル --- */

.seigaiha-special {
    background-color: #fff !important;
    overflow-x: hidden;
}

/* スクロール演出セクション：背景は常に白 */
.seigaiha-special .scroll-sequence {
    position: relative;
    height: 100vh; /* 演出の遊び（戻る動作を安定させる） */
    background: #fff;
}

.seigaiha-special .sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    z-index: 100;
}

/* 中央画像：1/3に絞られる */
.seigaiha-special .mv-center {
    position: absolute;
    width: 100%; height: 100%;
    z-index: 2;
    clip-path: inset(0 0% 0 0%);
    transition: clip-path 1.0s cubic-bezier(0.65, 0, 0.35, 1);
}

/* アニメーション後の状態（中央1/3が残る） */
.seigaiha-special .is-animated .mv-center {
    clip-path: inset(0 33.333% 0 33.333%);
}

.seigaiha-special .mv-center img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* 左右画像：メインと同じサイズで下からせり上がる */
.seigaiha-special .side-photo {
    position: absolute;
    top: 0;
    width: 33.333%; height: 100vh;
    z-index: 3;
    transform: translateY(100%);
    transition: transform 1.0s cubic-bezier(0.65, 0, 0.35, 1);
}

.seigaiha-special .side-left { left: 0; }
.seigaiha-special .side-right { right: 0; }

.seigaiha-special .is-animated .side-photo {
    transform: translateY(0);
}

.seigaiha-special .side-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* 中央の文字：小さく、影を強く、消えないように設定 */
.seigaiha-special .caption-chocolat {
    position: absolute;
    /* 1. 位置を「中央(50%)」から「下から20%」へ変更 */
    top: auto; 
    bottom: 20%; 
    left: 50%;
    /* 2. 縦方向のマイナス移動を消して、横方向の中央寄せだけに */
    transform: translateX(-50%); 
    
    color: #fff; 
    text-align: center;
    z-index: 10;
    transition: transform 0.6s ease; 
    width: 100%;

    /* 3. 消えないように不透明度を1に固定 */
    opacity: 1 !important; 
}

.seigaiha-special .mv-title {
    font-size: 1.8rem;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.6;
    text-shadow: 
        0 0 15px rgba(0, 40, 80, 1.0), 
        0 0 30px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.seigaiha-special .mv-subtitle {
    display: block;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
}

.seigaiha-special .is-animated .caption-chocolat {
    opacity: 0;
}

/* --- 本文エリア（演出後に続く） --- */
.seigaiha-special .content-wrapper {
    position: relative;
    z-index: 200;
    background: #fff;
}

/* フェードアップ演出 */
.seigaiha-special .fade-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1s, transform 1s;
}
.seigaiha-special .fade-up.is-show { opacity: 1; transform: translateY(0); }

@media screen and (max-width: 768px) {
    /* 1. スクロール領域の高さを自動に戻し、余白を完全に排除 */
    .seigaiha-special .scroll-sequence {
        height: auto !important;
        background: #fff;
    }

    /* 2. メインビジュアルを 750:1334 (9:16) の比率に固定 */
    .seigaiha-special .sticky-wrapper {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important; /* 高さは比率で決まるためauto */
        aspect-ratio: 9 / 16;   /* 750:1334とほぼ同等の比率 */
        display: block !important;
    }

    /* 3. 画像の削り・アニメーションを完全に無効化 */
    .seigaiha-special .mv-center {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        clip-path: none !important;
        transition: none !important;
    }

    .seigaiha-special .mv-center img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 比率に合わせて画像を切り抜き表示 */
    }

    /* 4. サイド画像はスマホでは不要なので非表示 */
    .seigaiha-special .side-photo {
        display: none !important;
    }

    /* 5. 文字位置：下から20%を維持しつつサイズ調整 */
    .seigaiha-special .caption-chocolat {
        position: absolute !important;
        bottom: 20% !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        opacity: 1 !important;
        width: 90% !important;
    }
    
    .seigaiha-special .mv-title {
        font-size: 1.4rem !important;
        line-height: 1.5 !important;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.8) !important;
    }

    /* 6. 本文との接続を密着させる */
    .seigaiha-special .content-wrapper {
        margin-top: 0 !important;
    }
}