/* ==================================
   Reset / 共通
================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==================================
   Swiper: projection film slider
================================== */

/* ドット・矢印のトランジション */
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet::before,
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
[class^="swiper-button-"] {
  transition: all 0.9s ease;
}

/* スライダー内リンク色 */
.swiper-container.swiper-container1 a,
.swiper-container.swiper-container1 a:hover,
.swiper-container.swiper-container1 a:visited {
  color: #fff;
}

/* コンテナ */
.swiper-container.swiper-container1 {
  position: relative;
  background-color: #000;
  width: 100vw;
  height: 70vh;
  transition: opacity 0.5s ease;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

/* coverflow 余白調整（必要なら） */
.swiper-container.swiper-container-coverflow {
  padding-top: 0;
}

/* スライド */
.swiper-container1 .swiper-slide {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
}

/* 背景画像imgは非表示（背景に使う前提） */
.swiper-container1 .swiper-slide .entity-img {
  display: none;
}

/* スライド内テキスト */
.swiper-container1 .swiper-slide .content {
  position: absolute;
  top: 50%;
  left: 0;
  width: 90%;
  padding-left: 5%;
  color: #fff;
  transform: translateY(-50%);
}

.swiper-container1 .swiper-slide .content .title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.swiper-container1 .swiper-slide .content .captions,
.swiper-container1 .swiper-slide .content .caption {
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* 共通ボタンサイズ（初期は非表示） */
[class^="swiper-button-"] {
  width: 44px;
  opacity: 0;
  visibility: hidden;
}

/* 矢印：左右配置＆常時表示 */
.swiper-container1 .swiper-button-prev,
.swiper-container1 .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #196785;
  opacity: 1;
  visibility: visible;
}

.swiper-container1 .swiper-button-prev {
  left: 16px;
}

.swiper-container1 .swiper-button-next {
  right: 16px;
}

/* Swiper: モバイル調整 */
@media (max-width: 600px) {
  .swiper-container1 .swiper-button-prev,
  .swiper-container1 .swiper-button-next {
    width: 32px;
    height: 32px;
    top: 40%;
  }
  .swiper-container1 .swiper-button-prev {
    left: 4px;
  }
  .swiper-container1 .swiper-button-next {
    right: 4px;
  }
}

/* ==================================
   projection-film ページ全体
================================== */

.projection-film {
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  background: #fff;
  color: #222;
}

/* セクション共通 */
.projection-film section {
  margin-bottom: 0;
  background: #fff;
}

/* インナーコンテンツ */
.projection-film .content {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 16px;
}

/* 見出し */
.projection-film h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-top: 2rem;
  margin-bottom: 8px;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: #0eb0e0;
  text-shadow: 0 1px 6px #0eb0e017;
}

.projection-film .sub {
  font-size: 1.3rem;
  color: #9da0a8;
  margin-bottom: 24px;
  letter-spacing: 0.2em;
}

.projection-film p {
  line-height: 2;
  font-size: 1.18rem;
  margin: 16px 0;
}

/* トップロゴ */
.proj-top-logo img {
  display: block;
  margin: 50px auto 0 auto;
  text-align: center;
  width: 50%;
}

@media (max-width:980px){
  .proj-top-logo img {width:80%;}
  .projection-film p {font-size: 1rem;}
}

/* ==================================
   フィルムの仕組み / 特徴
================================== */

/* PCレイアウト：テキスト＋画像横並び */
.projection-film .film-mechanism-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 2.5em;
}

.projection-film .mechanism-text {
  flex: 2;
  font-size: 1.1em;
  line-height: 1.8;
}

.projection-film .mechanism-image {
  flex: 1;
}

.projection-film .mechanism-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #ddd;
}

/* ▼ スマホでは「画像 → テキスト」の縦並びにする ▼ */
@media (max-width: 980px) {
  .projection-film .film-mechanism-row {
    flex-direction: column;
  }

  .projection-film .mechanism-image {
    order: 1;
    max-width: 100%;
    text-align: center;
    margin-bottom: 12px;
  }

  .projection-film .mechanism-image img {
    max-width: 100%;
    height: auto;
  }

  .projection-film .mechanism-text {
    order: 2;
  }
}

/* ==================================
   用途イメージ カード
================================== */

.projection-film .film-usage-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  margin: 2em 0 3em 0;
}

.projection-film .usage-card-img {
  width: 320px;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 4px 32px #0001, 0 0 0 1px #eee;
  background: #fff;
  transition: box-shadow 0.2s;
}

.projection-film .usage-card-img:hover {
  box-shadow: 0 4px 32px #0002, 0 0 0 2px #19c5ff;
  z-index: 1;
}

/* 用途カード：レスポンシブ */
@media (max-width: 1100px) {
  .projection-film .film-usage-row {
    gap: 16px;
  }
  .projection-film .usage-card-img {
    width: 29vw;
    min-width: 210px;
    max-width: 330px;
  }
}

@media (max-width: 900px) {
  .projection-film .film-usage-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .projection-film .usage-card-img {
    width: 96vw;
    max-width: 420px;
  }
}

/* ==================================
   特徴リスト / 導入事例
================================== */

/* 特徴リストカード群 */
.projection-film .list-container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
}

.projection-film .list-content {
  flex: 1 1 320px;
  min-width: 320px;
  background: #eaf6fb;
  border-radius: 16px;
  box-shadow: 0 2px 12px #0eb0e01a;
  padding: 24px 16px 18px 16px;
  margin-bottom: 16px;
}

.projection-film .list-content .title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.projection-film .pro-catch {
  display: block;
  font-size: 1.4em;
  margin-bottom: 12px;
}

/* 画像グループ */
.projection-film .wrapper-2,
.projection-film .wrapper-3 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}

.projection-film .wrapper-2 img {
  max-width: 220px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0eb0e026;
}

/* 用途タイトル（ページ内共通） */
.projection-film .type2 {
  font-size: 2.2rem;
  color: #196785;
  margin-bottom: 12px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

/* 導入事例ブロック */
.projection-film .exsample {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  background: #f9fcff;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 20px;
  align-items: center;
}

.projection-film .exsample .intro {
  flex: 1 1 240px;
}

.projection-film .exsample-img {
  flex: 1 1 320px;
  text-align: center;
}

.projection-film .exsample-img img {
  width: 95%;
  max-width: 340px;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0eb0e033;
  margin: 0 0 8px 0;
}

/* ==================================
   MAP 共通ベース（PC / SP）
================================== */

/* コンテナ共通 */
.map-container {
  position: relative;
  max-width: 80%;
  margin: 0 auto;
  border-radius: 18px;
  overflow: visible;
  background: #eaf6fb;
  box-shadow: 0 2px 16px #0eb0e014;
  padding: 12px;
}

/* PC用メインマップ画像 */
.map-image {
  width: 100%;
  display: block;
}

/* SP用マップ画像 */
.map-image-sp {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ピン（デフォルトは PC アニメ用：非表示） */
.map-container .pin {
  position: absolute;
  transform: translate(-50%, -100%);
  width: 100px;
  cursor: pointer;
  z-index: 2;
  /*opacity: 0;*/
}

/* PC でスクロールインしたら .animate が付く前提 */
.map-container .pin.animate {
  animation: drop 1s ease-out forwards;
  opacity: 1;
}

/* ピンの位置（PC / SP 共通の割合） */
.pin01 {
  top: 72%;
  left: 10%;
}

.pin02 {
  top: 60%;
  left: 88%;
}

/* 落下アニメーション */
@keyframes drop {
  0% {
    transform: translate(-50%, -300%);
    opacity: 0;
  }
  70% {
    transform: translate(-50%, -90%);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -100%);
  }
}

/* ツールチップの基本スタイル（狭め画面に合わせたサイズ） */
.projection-film .tooltip {
  position: absolute;
  left: 50%;
  bottom: 0;                    /* マップより少し下側に逃がす */
  transform: translate(-50%, 0);   /* 上下のズレをなくす */
  display: none;
  z-index: 3;

  width: min(480px, 80vw);         /* 画面に合わせて自動で縮む */
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid #ccc;

  background-image: linear-gradient(
      129deg,
      rgba(95, 95, 95, 1),
      rgba(180, 180, 180, 1) 20%,
      rgba(124, 124, 124, 1) 38%,
      rgba(156, 156, 156, 1) 53%,
      rgba(129, 129, 129, 1) 69%,
      rgba(190, 190, 190, 1) 82%,
      rgba(132, 132, 132, 1)
    ),
    linear-gradient(145deg, rgba(233, 233, 233, 1) 48%, rgba(0, 0, 0, 1)),
    linear-gradient(145deg, rgba(233, 233, 233, 1) 48%, rgba(0, 0, 0, 1));
}

.projection-film .tooltip img,
.projection-film .tooltip video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* マウスがツールチップの上に移っても消えないように */
.projection-film .pin:hover + .tooltip,
.projection-film .tooltip:hover {
  display: block;
}


.projection-film .tooltip p {
  color: #fff;
}

/* 画面が狭くなったときのツールチップ調整（PC幅用） */
@media (max-width: 1200px) and (min-width: 769px) {
  .projection-film .tooltip {
    /* マップの下側に出す */
    bottom: 0;                 /* 元は bottom: 0% くらい */
    transform: translate(-50%, 0);

    /* 少しコンパクトに */
    width: min(480px, 80vw);
    padding: 6px 10px;
    border-radius: 14px;
  }

  .projection-film .tooltip img,
  .projection-film .tooltip video {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .projection-film .tooltip p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* ==================================
   MAP（SP用セクション）
================================== */

.map-section--sp {
  padding: 32px 16px;
}

.map-title-sp {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 16px;
}

/* 施工一覧リスト */
.map-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.map-point {
  font-size: 1.2rem;
  line-height: 1.6;
}

.map-text {
  flex: 1;
}

.map-name {
  font-size: 1rem;
  font-weight: 600;
}

.map-address {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* SPだけ pin hover→リスト強調 */
@media (max-width: 768px) {
  body:has(#pin2:hover) #map-item-saijo {
    transform: scale(1.05);
    background-color: rgba(12, 245, 182, 0.18);
    box-shadow: 0 0 12px rgba(12, 245, 182, 0.35);
  }

  body:has(#pin1:hover) #map-item-orizuru {
    transform: scale(1.05);
    background-color: rgba(12, 245, 182, 0.18);
    box-shadow: 0 0 12px rgba(12, 245, 182, 0.35);
  }

  body:has(#pin2:hover) #map-item-saijo .map-name,
  body:has(#pin1:hover) #map-item-orizuru .map-name {
    font-size: 1.05rem;
    font-weight: 700;
  }
}

/* ==================================
   タイプ説明セクション（about-type）
================================== */

.projection-film .about-type-section {
  background: #f6fbff;
  box-shadow: 0 4px 20px #0eb0e012;
  margin-bottom: 38px;
  padding-bottom: 10px;
}

.projection-film .about-type-flex {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.projection-film .about-type-text {
  flex: 1 1 320px;
  min-width: 280px;
}

.projection-film .about-type-img {
  flex: 1 1 260px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.projection-film .about-type-img img {
  width: 95%;
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0eb0e033;
}

/* 下部のまとめボックス */
.projection-film .about-type-bottom {
  margin-top: 38px;
  background: #eaf6fb;
  padding: 16px 12px 18px 12px;
  border-radius: 12px;
  text-align: center;
}

.projection-film .about-type-bottom-imgs {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.projection-film .about-type-bottom-imgs img {
  max-width: 240px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 10px #0eb0e018;
}

/* 見出しバリエーション */
.projection-film .big-title {
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 8px;
  margin-top: 0;
  letter-spacing: 0.05em;
}

.projection-film .sub-title {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 30px;
}

/* about-images：左右2枚の説明画像 */
.projection-film .about-images {
  display: flex;
  gap: 18px;
  margin-bottom: 40px;
}

.projection-film .about-images img {
  width: 50%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 16px #ddd;
}

/* 仕組み詳細ブロック */
.projection-film .mechanism-block {
  margin-top: 40px;
}

.projection-film .mechanism-title {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.projection-film .mechanism-imgs {
  margin-top: 20px;
}

.projection-film .mechanism-imgs img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 2px 12px #ccc;
}

/* about-type セクション：レスポンシブ */
@media (max-width: 800px) {
  .projection-film .about-type-flex {
    flex-direction: column;
    gap: 12px;
  }

  .projection-film .about-type-img img {
    max-width: 98vw;
  }

  .projection-film .content {
    padding: 18px 2vw 28px 2vw;
  }

  .projection-film .big-title {
    font-size: 1.2rem;
  }

  .projection-film .type2 {
    font-size: 1.3rem;
  }

  .projection-film .mechanism-title {
    font-size: 1.1rem;
  }

  .projection-film .about-images {
    flex-direction: column;
    gap: 12px;
  }

  .projection-film .about-images img {
    width: 100%;
  }
}

/* ==================================
   問い合わせボタン
================================== */

.projection-film .p-btn,
.projection-film .home-btn {
  display: inline-block;
  margin: 24px auto 0 auto;
  background: linear-gradient(90deg, #0eb0e0 0%, #25c9a7 100%);
  color: #fff;
  font-size: 1.3em;
  font-weight: bold;
  padding: 18px 42px;
  border-radius: 34px;
  box-shadow: 0 4px 20px #0eb0e027;
  transition: all 0.2s;
  text-align: center;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: none;
}

.projection-film .p-btn:hover,
.projection-film .home-btn:hover {
  background: linear-gradient(90deg, #25c9a7 0%, #0eb0e0 100%);
  color: #fff;
  box-shadow: 0 8px 36px #0eb0e027;
  transform: translateY(-2px) scale(1.04);
}

/* ==================================
   小さめデバイス共通
================================== */

@media (max-width: 900px) {
  .projection-film .list-container {
    gap: 18px;
  }

  .projection-film .list-content {
    min-width: 80vw;
  }

  .projection-film .exsample {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .projection-film .content {
    padding: 0 6px;
  }

  .projection-film h2 {
    font-size: 1.5rem;
  }

  .projection-film .pro-catch {
    font-size: 1.05em;
  }

  .projection-film .list-content {
    min-width: 94vw;
    padding: 14px 8px;
  }

  .projection-film .exsample-img img {
    max-width: 98vw;
  }
}

/* ==================================
   SP版マップ：ピンも drop アニメ（最終上書き）
   ※ このブロックは CSS ファイルの一番最後に置いてください
================================== */
@media (max-width: 768px) {
  /* SPマップコンテナの調整 */
  #proj-map-sp .map-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0; /* お好みで */
  }

  /* SP ピン：drop アニメ（読み込み時に落ちてくる） */
  #proj-map-sp .map-container .pin {
    position: absolute;
    width: 70px;       /* SPで少し小さめ */
    z-index: 10;
    cursor: pointer;

    /* ここでベースの .map-container .pin を上書き */
    transform: translate(-50%, -300%);
    /*opacity: 0 !important;*/
    animation: drop 0.9s ease-out forwards;
  }

  /* 位置は PC と同じ割合でOK */
  #proj-map-sp .pin01 {
    top: 72%;
    left: 10%;
  }

  #proj-map-sp .pin02 {
    top: 60%;
    left: 88%;
  }
}