@charset "utf-8";

#top #header_nav_facilities a {
  background-position: 0 -60px;
    pointer-events: none;
}


#breadcrumb {
  margin-top: 25px;
  margin-bottom: 20px;
}

/* 2. 斜めカットを取り入れたヘッダー部分 */
.facility-header {
  width: 100%;
  min-height: 350px;

  /* 【ここを修正！】左右の画像を追加しました */
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    /* 1. 一番手前の黒フィルター */

    /* 1.横幅を 150px、縦幅を auto に指定 */
    url("../images/facilities/camp.png") calc(50% - 380px) 30% / auto 60% no-repeat,
    /* 2. 左の画像 */

    /* 2. 右上の山（mori_ki.png）：サイズを少し小さめ（40%）にして右上に配置 */
    url("../images/facilities/mori_ki.png") calc(50% + 380px) 45% / auto 35% no-repeat,

    /* 3. 右下の海（umi.png）：サイズを45%にし、山の「左下」に回り込むよう位置を調整 */
    url("../images/facilities/umi2.png") calc(50% + 300px) 80% / auto 25% no-repeat,

    url("../images/facilities/wood.png") center/cover no-repeat,
    /* 4. ベースの木目 */
    #5c4033;
  /* 5. 万が一の予備色 */

  padding: 60px 20px 100px 20px;
  text-align: center;
  box-sizing: border-box;
  clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 0% 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #fff;
}


/* 【ここを修正！】フィルターの色を黒（0, 0, 0）に変更し、最後に予備の茶色(#5c4033)を足します */
/*
background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
url("../images/facilities/wood.png") center/cover no-repeat,
#5c4033;
/* 万が一、画像が読み込めなくても綺麗な茶色になります */
/*background: #5c4033 no-repeat center;
  /* 下辺を少し多めに確保して斜めにカットするスペースを作ります */
/*padding: 30px 20px 30px 20px;*/
/*
padding: 60px 20px 100px 20px;
/*下に斜めカット用の余白をしっかり確保*/
/*
text-align: center;
box-sizing: border-box;
/* 【重要】下辺を斜めにする設定*/
/* clip-path で4つの角の座標を指定（%指定なので画面幅いっぱいに連動します）
    左上(0% 0%) -> 右上(100% 0%) -> 右下(100% 85%) -> 左下(0% 100%)
    ※右下の縦位置を「85%」に浅くすることで、右斜め上がりのラインを作ります。
  */
/*
clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 0% 100%);
/* 【重要】中の文字を上下左右中央に配置するための設定 */
/*
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
gap: 10px;
/* 文字と黄色いボタンの間のすき間 */
/*
color: #fff;
padding-bottom: 40px;
}

/* FACILITY（英語部分） */

.facility-title {
  position: relative;
  /* 上の白い線を表示するための基準 */
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3rem);
  /* 画面サイズに合わせてレスポンシブに変化 */
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  /* 文字の立体感を出す黒い影（ドロップシャドウ） */
  text-shadow: 3px 3px 0px #000000;
}

/* テキストを右斜め上がりにするクラス */
.rotated-text {
  display: inline-block;
  /* 回転させるためにインラインブロックにする */
  transform: rotate(-10deg);
  /* 負の値で右上がりに回転。角度は調整してください */
  transform-origin: center center;
  /* 回転の中心を文字の中央にする */
}

/* FACILITYタイトルの上の装飾線 (画像にある白い線) */
/* 
.facility-title::before {
  content: "川";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 30px;
  background-color: #fff;

 CSSのグラデーション機能で3本の縦線を描く方法 */

/*background: linear-gradient(90deg, 
    #fff 0%, #fff 10%, 
    transparent 10%, transparent 45%, 
    #fff 45%, #fff 55%, 
    transparent 55%, transparent 90%, 
    #fff 90%, #fff 100%
  );

  /* 扇型に見せるために、上を少しすぼめます */
/*clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}*/

/* 集中線の画像を配置する設定 */
.facility-title::before {
  content: "";
  /* 文字は空にする */
  position: absolute;
  top: -45px;
  /* 文字の少し上 */
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  /* 画像のサイズに合わせる */
  height: 40px;
  /* 画像のサイズに合わせる */

  /* 【ここを修正！】グラデーションではなく画像を指定 */
  background: url("images/focus-lines.png") no-repeat center/contain;

  /* 以前のグラデーション設定やフォント設定、clip-pathは削除します */
}

/* 施設案内・場内マップ（日本語部分の黄色い帯） */
.facility-subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #ffcc00;
  /* 画像に近い鮮やかな黄色 */
  color: #000000;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 6px 20px;
  margin-top: 15px;
  letter-spacing: 1px;
  align-self: center;
  border-radius: 10px;
  width: 180px;
  /* スクリーンショットのサイズに合わせる場合 */
  height: 45px;
  /* お好みの高さに固定（これで間延びが直ります！） */
  margin-top: 12px;

  /* 4. padding-bottom: 40px があると上下中央がズレるので、
          上下均等にするか、高さを決める場合は padding を一回リセットします */
  padding: 0;
}

#map {
  max-width: 1000px;
  margin: 30px auto 80px;

}

#map img {
  border-radius: 5%;
  width: 100%;
  height: auto;
  box-shadow: 0 18px 35px rgba(80, 50, 20, 0.45),
    0 0 35px rgba(222, 184, 80, 0.35);

}

/* ２章・セクションはここから（全体の囲み（余白の設定） */
/* --- 全体の基本設定 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /*font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;*/
  /* 横スクロールバーの発生を防ぐ */
}

/* --- メインのレイアウト設定 --- */
.split-layout {
  width: 100%;
  height: auto;
}

.split-layout-inner {
  display: flex;
  align-items: center;
  /* 上下中央揃え */
  width: 100%;
  max-width: 1000px;
  /* ★1000pxに完全固定 */
  margin: 0 auto 120px auto;
  /* 上のMAPと同じ中央配置 */
  padding: 0 20px;
  box-sizing: border-box;
  justify-content: space-between;
  /* 左右に綺麗に振り分け */
  gap: 5%;
  /* 画像とテキストの間の隙間 */
}

/* --- 【左側】画像エリアの設定（全体の65%に拡大） --- */
.image-container {
  width: 65%;
  /* ★枠内で画像をできるだけ大きく表示 */
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  /* 4角をほんのり丸く */
  opacity: 0;
  /*透明で裏返っていて影はまだ薄い状態*/
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

  /* アニメーション前の状態（透明で、裏返っている状態） */
  opacity: 0;
  transform: rotateY(-90deg);
  /* Y軸（縦線）を中心に90度回転させて見えなくしておく */
  transition:
    transform 2s cubic-bezier(0.1, 0.8, 0.3, 1),
    opacity 2s ease-out;
  box-shadow: 2s ease-out;
  /* 0.8秒かけて滑らかに動かす */
}

/* ★スクロールして画面に入ったらこのクラスがJSでつき、くるっと反転して現れる */
.image-container.is-active {
  opacity: 1;
  transform: rotateY(0deg);
  /* 正面を向く */
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.22),
    0 15px 12px rgba(0, 0, 0, 0.15);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- 【右側】テキストエリアの設定（残り30%） --- */
.text-container {
  width: 30%;
  /* 1000pxの枠内に綺麗に収まるサイズ */
  box-sizing: border-box;
}

.text-content {
  width: 100%;
}

/* 各テキストの装飾（サイズ調整版） */
.text-content h2 {
  font-size: 1.8rem;
  white-space: nowrap;
  color: #2c4c38;
  margin-bottom: 20px;
  border-bottom: 2px solid #2c4c38;
  padding-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.lead-text {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 40px;
  color: #555;
}

.text-content h3 {
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #444;
}

.text-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* --- スクロールで「ふわ〜っ」と出すアニメーション --- */
/*@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-text {
  /*animation: fadeInUp linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;*/
/*animation: fadeInUp 1.2s;
  ease-out forwards;
  opacity: 0;

}

/* --- スマホ対応（画面が狭い時は上＝画像、下＝テキストにする） --- */
@media (max-width: 800px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

  .image-container {
    height: 40vh;
  }

  .text-container {
    padding: 40px 20px;
  }
}

/* もっと見るボタン */
.more-btn {
  display: inline-block;
  background-color: #e1d737;
  /* ボタンの背景色をメインカラーに */
  color: #333631;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 35px;
  border-radius: 25px;
  /* カプセル型のボタンにする */
  transition: opacity 0.3s;
}

/* ボタンにマウスを乗せたときの効果 */
.more-btn:hover {
  opacity: 0.8;
}

/* ２つ目の章・セクションはここまで */
/* 全体のコンテナ設定 */
/* カルーセル全体を1000px内に収めるための外枠 */
.slider-outer-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 120px;
  /* 画面中央に配置（下の余白を120pxに統一） */
  padding: 0 20px;
  box-sizing: border-box;
}

/* Swiper全体の余白調整 */
.swiper {
  width: 100%;
  padding-bottom: 50px !important;
  /* 下の丸いアイコンを表示するスペース */
}

/* カード全体のスタイル設定 */
.card {
  background-color: #ffffff;
  border-radius: 16px;
  /* 角丸 */
  overflow: hidden;
  /* はみ出た写真を削る */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* ほんのり軽い影 */
  box-sizing: border-box;
}

/* 親要素 */
.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0 5px 0;
}

/* クラス名を使わず、タグ名（img）で直接指定する */
.icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* 小見出し（h5）のスタイル */
.card-title {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  text-align: center;
  color: #333333;
}

/* 写真を包む枠（ホバー時に画像がはみ出さないようにする） */
.card-img-wrapper {
  width: 100%;
  height: 220px;
  /* 写真の高さ */
  overflow: hidden;
  /* 拡大した時、枠からはみ出た部分を隠す */
  position: relative;
}

/* 写真自体のスタイル */
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 画像の比率を保ったまま枠に収める */
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  /* 拡大アニメーションを滑らかに */
}

/* 説明文のスタイル */
.card-desc {
  font-size: 14px;
  font-family: "Noto Sans JP", sans-serif;
  color: #251f1f;
  margin: 10px 0 5px 0;
  line-height: 1.6;
  text-align: center;
  font-weight: bold;
}

/* ★カーソルを載せた時（ホバー時）の動き */
.card:hover .card-img-wrapper img {
  transform: scale(1.08);
  /* 1.08倍に拡大 */
  opacity: 0.9;
  /* ほんのり薄くする */
}

/* --- 下の丸いアイコン（ページネーション）のカスタムデザイン --- */
.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: #ccc !important;
  /* 通常時の丸の色 */
  opacity: 1 !important;
  margin: 0 6px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #2c4c38 !important;
  /* 現在選択されている丸の色 */
  width: 24px !important;
  /* アクティブな丸だけ少し横長にしてオシャレに */
  border-radius: 6px !important;
}