/* ==========================
  施工事例 アーカイブ
========================== */

.movie{
	background: #F0EEE7;
}

.movie .wrapper {
  overflow: inherit;
  overflow-x: clip;
}

.movie .l_second_main{
	position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
	margin-bottom: 90px;
}

.ttl_outer {
	bottom: 0;
	top: inherit;
	transform: none;
}

.ttl {
  color: #172E59;
	line-height: 1;
}

.movie #g-nav-main li a {
  color: #172E59;
}

.movie .gnavi__list:last-child a::after {
  background: url("../images/common/link_n.svg") no-repeat center / contain;
}

.movie .openbtn {
  color: #172E59;
}

.movie .openbtn span {
  background-color: #172E59;
}



@media screen and (max-width: 767px) {
	
.l_movie{
	background: #F0EEE7;
padding: 0 5.3vw 15vw 5.3vw;
}

.movie .l_second_main{
	position: relative;
  width: 100%;
  height: 30vw;
  overflow: hidden;
	margin-bottom: 12vw;
}

.ttl_outer {
	bottom: 0;
	top: inherit;
	transform: none;
}

.ttl {
  color: #172E59;
	line-height: 1;
}

.movie .openbtn {
  color: #172E59;
}

.movie .openbtn span {
  background-color: #172E59;
}
	
}

/* ================================
   絞り込みエリア（filter-area）
================================ */
.movie-archive {
 display: flex;
 justify-content: space-between;
 width: 1100px;
 margin: 0 auto 50px auto;
	align-items: flex-start;
}
.movie-archive.movie-tag {
 display: flex;
 justify-content:center;
 width: 1100px;
 margin: 0 auto 50px auto;
}


/* 基本デザイン */
.filter-area {
 width: 250px;
 margin-bottom: 30px;
	text-align: left;
	
	position: -webkit-sticky;
    position: sticky;
    top: 106px;
    height: fit-content;
	z-index: 10;
}


.sttl_outer {
  width: 250px;
	margin-bottom: 30px;
}
.sttl_outer .sttl {
  font-size: 13px;
  color: #172E59;
  line-height: 1.5;
  letter-spacing: 2px;
	display: block;
	align-items: center;
}

.sttl_outer .sttl::before {
  content: attr(data-title);
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: bold;
  font-variation-settings: "wdth"100;
  font-size: 25px;
  letter-spacing: 5px;
	margin-right: 20px;
}


/* 絞り込みフォーム */
.filter-area form {
 padding: 0px;
 display: block;
}
/* 各ブロック */
.filter-block {
 margin-bottom: 12px;
 padding: 0 0 12px 0;
}
.filter-block:last-child {
 border: none;
}

.filter-block p{
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 5px;
}
.filter-block a{
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 5px;
	color: #fff;
	background: #172E59;
	border-radius: 20px;
	text-align: center;
}

.filter-reset{
	text-align: center;
	color: #172E59;
	font-size: 12px;
	width: 180px;
}


/* タイトル */
.filter-title {
 font-size: 14px;
 display: block;
 margin-bottom: 6px;
 text-align: left;
 width: 35%;
}
/* ラジオボタン縦並び */
/* ラジオボタンラベル */
.radio-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #000000;
  line-height: 2;
  letter-spacing: 0.5px;
  cursor: pointer;
  /* 親要素の relative は解除（.term-nameに移譲） */
}

/* デフォルトのラジオボタンを隠す */
.radio-item input[type="radio"] {
  display: none;
}

/* テキストと円を包むスパン */
.radio-item .term-name {
  position: relative; /* ここを基準にする */
  padding-left: 22px; /* 円の幅(14px) + 余白(8px) */
  display: inline-block;
}

/* 背景白円（14px） */
.radio-item .term-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* 垂直中央配置 */
  width: 14px;
  height: 14px;
  background-color: #ffffff;
  border-radius: 50%;
}

/* 選択時のオレンジ円（8px） */
.radio-item .term-name::after {
  content: "";
  position: absolute;
  /* 白円(14px)の中心に配置するための計算 */
  /* (14px - 8px) / 2 = 3px */
  left: 3px; 
  top: 50%;
  transform: translateY(-50%); /* 垂直中央配置 */
  width: 8px;
  height: 8px;
  background-color: #FBA518;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

	.filter-nav li {
		margin-bottom: 20px;
		width: 180px;
}

	.filter-nav a {
 padding: 8px 15px;
 border: none;
 border-radius: 2px;
 text-align: left;
		border: #ACACAC 1px solid;
	background: none;
	color: #ACACAC;
	font-size: 12px;
	border-radius: 20px;
		display: block;
		text-align: center;
}

	.filter-nav li.current a {
		border: #172E59 1px solid;
	background: #172E59;
	color: #fff;
}




.movie-list {
 width: 711px;
}
.movie-items {
 display: flex;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 50px 30px;
}
.movie-item {
 width: 340px;
	position: relative;
}
.movie-item a {
}
.ic_status {
 position: absolute;
 top: 0;
 left: 0;
 width: 58px;
 height: 58px;
}
.movie-item figure {
 width:340px;
	height: 187px;
 aspect-ratio: 1 / 1;
 overflow: hidden;
	margin-bottom: 15px;
}
.movie-item img {
 width: 100%;
 height: 100%;
 object-fit: cover; /* 中央トリミング */
 display: block;
}
.item-txt {
	text-align: left;
}
.item-txt h3 {
	width: 290px;
 font-size: 15px;
 font-weight: 400;
 line-height: 1;
	white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
	color: #172E59;
	letter-spacing: 1px;
}
.w-cat {
	width: 114px;
 font-size: 12px;
 color: #ACACAC;
	border: #ACACAC 1px solid;
	height: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 15px;
	border-radius: 20px;
}

@media screen and (max-width: 767px) {
	
	 .movie-archive {
  display: block;
  width: auto;
  margin: 0 0 50px 0;
 }
	.movie-archive.movie-tag {
 display: block;
  width: auto;
  margin: 0 5.3vw 50px 5.3vw;
}
	
.sttl_outer {
	display: none;
}
	
	.filter-area {
  width: auto;
    overflow: hidden;
    margin: 0 auto 8vw auto;
		
		position: -webkit-sticky;
    position: inherit;
    top: auto;
    height: auto;
	z-index: 10;
 }
	
	.filter-block {
  margin-bottom: 0;
  padding: 0 0 0 0;
}
	
	.filter-reset{
	text-align: right;
	color: #172E59;
	font-size: 3.2vw;
	width: 100%;
		margin-top: -4vw;
}
	
	.filter-nav{
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}

		.filter-nav li {
		margin-bottom: 4.5vw;
		width: 42.4vw;
}

	.filter-nav a {
 padding: 2vw 0;
 border: none;
 border-radius: 2px;
 text-align: left;
		border: #ACACAC 1px solid;
	background: none;
	color: #ACACAC;
	font-size: 3.2vw;
	border-radius: 4.8vw;
		display: block;
		text-align: center;
}

	.filter-nav li.current a {
		border: #172E59 1px solid;
	background: #172E59;
	color: #fff;
}

	
	.filter-block nav a {
  width: 99%;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 3.73vw;
}
	
	.movie-list {
 width: auto;
}
.movie-items {
 display: block;
}
.movie-item {
 width: auto;
	margin-bottom: 16vw;
}
.movie-item a {
}
.movie-item figure {
 width:89vw;
	height: 50.4vw;
 aspect-ratio: 1 / 1;
 overflow: hidden;
	margin-bottom: 3vw;
}
.movie-item img {
 width: 100%;
 height: 100%;
 object-fit: cover; /* 中央トリミング */
 display: block;
}
.item-txt {
	display: block;
}
.item-txt h3 {
		width: 80vw;
 font-size: 3.2vw;
 font-weight: 400;
 line-height: 1;
}
.w-cat {
 font-size: 2.9vw;
 color: #ACACAC;
	width: 30.4vw;
	margin-right: 2vw;
	height: 6.4vw;
}

}

/* ====================================
   PC時（常に開いた状態）
==================================== */
@media screen and (min-width: 769px) {
 .filter-area form {
  display: block !important;
 }
 .filter-heading {
  cursor: default;
 }
 /* PCではアイコン非表示 */
 .filter-heading::after {
  display: none;
 }
}

/* ページナビ全体 */
.ajax-pagination {
  margin: 60px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

/* 各要素共通スタイル */
.page-numbers {
  text-decoration: none;
  color: #1a2e4d;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: opacity 0.3s;
  border: none;
  background: none;
  width: 17px;
  height: auto;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.page-numbers:hover {
  opacity: 0.7;
}

/* カレント（現在地）のスタイル */
.page-numbers.current {
  font-weight: 500;
  background: none;
  border: none;
}

/* カレントの下線 */
.page-numbers.current::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #1a2e4d;
}

/* 矢印共通設定（svg背景） */
.page-numbers.prev,
.page-numbers.next {
  width: 7.5px;
  height: 8.5px;
  text-indent: -9999px;
  background-image: url("../images/common/ic_nav.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* 左矢印の反転 */
.page-numbers.prev {
  transform: scaleX(-1);
}

/* ドット（...）の調整 */
.page-numbers.dots {
  border: none;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 767px) {
  .ajax-pagination {
    margin: 13vw auto;
    gap: 20px;
  }
  .page-numbers {
    font-size: 3.46vw;
  }
  .page-numbers.prev,
  .page-numbers.next {
    width: 13px;
    height: 13px;
  }
}

/* ==========================
  施工事例 詳細
========================== */
.movie_ttl_outer {
	position: absolute;
	left: 50%;
	top: 50%;
	color: #fff;
	transform: translate(-50%,-50%);
}
.movie_ttl{
	font-size: 18px;
	letter-spacing: 3px;
}
.movie_area{
	font-size: 12px;
	margin-top: 25px;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-style: normal;
	letter-spacing: 1px;
}

/*詳細*/
.l_movie_sec{
	background: #F0EEE7;
	padding: 100px 0 75px 0;
}
.movie-detail{
	width: 1100px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	text-align: left;
}
.main-area{
	width: 775px;
	order: 2;
}
.side-area{
	width: 256px;
	order: 1;
}
.side_ttl {
  font-size: 13px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.side_ttl::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #172E59;
  margin-left: 15px;
}

/*サイド*/
.m_movie_sbox{ margin-bottom: 70px; }
.movie_info{ margin-bottom: 10px; }
.movie_info th{
	font-size: 14px;
	font-weight: 500;
	width: 135px;
	padding-bottom: 10px;
}
.movie_info td{	
	font-size: 14px;
	font-weight: 400;
	line-height: 1.8;
	padding-bottom: 10px;
	color: #000;
}
.movie_sns{ display: flex; }
.movie_sns li a{
	width: 25px;
	height: 25px;
	display: flex;
	align-items: center;
}
.movie_sns li + li{ margin-left: 22px; }
.movie_tags{ display: flex; }
.movie_tags li + li{ margin-left: 22px; }
.movie_tags li a {
  font-size: 14px;
  color: #000;
  line-height: 1;
}
.movie_tags li a::before {
  content: "#";
  padding-right: 4px;
}

/*メイン*/
.m_movie_cbox{ margin-bottom: 100px; }
.m_movie_txt_b{ color: #000; }

@media screen and (max-width: 767px) {
	.movie_ttl_outer {
		width: 100%;
		padding: 0 13vw;
		position: absolute;
		left: 50%;
		top: 50%;
		color: #fff;
		transform: translate(-50%,-50%);
	}
	.movie_ttl{
		font-size: 4vw;
		letter-spacing: 3px;
	}
	.movie_area{
		font-size: 2.66vw;
		margin-top: 4.26vw;
	}
	.l_movie_sec{
		background: #F0EEE7;
		padding: 8vw 5.3vw 15vw 5.3vw;
	}
	.movie-detail{ width: auto; display: block; }
	.main-area{ width: auto; }
	.side-area{ width: auto; }
	.side_ttl {
	  font-size: 3.46vw;
	  letter-spacing: 0.05em;
	  display: flex;
	  align-items: center;
	  margin-bottom: 7vw;
	}
	.side_ttl::after {
	  content: "";
	  flex-grow: 1;
	  height: 1px;
	  background-color: #172E59;
	  margin-left: 15px;
	}
	.m_movie_sbox{ margin-bottom: 70px; }
	.movie_info{ margin-bottom: 10px; }
	.movie_info th{
		font-size: 3.2vw;
		font-weight: 500;
		width: 29.3vw;
		padding-bottom: 4vw;
	}
	.movie_info td{	
		font-size: 3.2vw;
		font-weight: 400;
		line-height: 1.8;
		padding-bottom: 4vw;
	}
	.movie_sns{ display: flex; }
	.movie_sns li a{
		width: 6vw;
		height: 6vw;
		display: flex;
		align-items: center;
	}
	.movie_sns li + li{ margin-left: 5vw; }
	.movie_tags{ display: flex; }
	.movie_tags li + li{ margin-left: 5vw; }
	.movie_tags li a {
	  font-size: 3.2vw;
	  color: #000;
	  line-height: 1;
	}
	.movie_tags li a::before {
	  content: "#";
	  padding-right: 4px;
	}
	.m_movie_cbox{ margin-bottom: 19vw; }
	.m_movie_txt_b{ color: #000; font-size: 3.2vw; line-height: 2; }
}

/* ====================================
   リクエスト / 要望・提案コンテナ
==================================== */
.request {
  background-color: #F2EFE6;
  font-size: 14px;
  line-height: 1.8;
  color: #172E59;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.request dt {
  width: 85px;
  font-weight: 400;
  position: relative;
  letter-spacing: 0.1em;
  padding-right: 20px;
  box-sizing: border-box;
  color: #172E59;
}
.request dt::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%);
  width: 9px;
  height: 11px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.request dt:nth-of-type(odd)::after { background-image: url("../images/common/ic_f.svg"); }
.request dt:nth-of-type(even)::after { background-image: url("../images/common/ic_q.svg"); }
.request dd {
  width: calc(100% - 85px);
  margin-left: 0;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.request dt:nth-of-type(even) + dd {
  color: #000000;
  margin-bottom: 60px;
  letter-spacing: 1.2px;
}
.request:last-child dt:nth-of-type(2n) + dd { margin-bottom: 0; }
.request dd:last-of-type { margin-bottom: 0; }

@media (max-width: 767px) {
  .request { padding: 0; font-size: 3.2vw; }
  .request dt { width: 18vw; padding-right: 5.8vw; }
  .request dt::after {
    right: 2.5vw;
    width: 9px;
    height: 11px;
  }
  .request dd { width: calc(100% - 18vw); margin-bottom: 4.5vw; }
  .request dt:nth-of-type(even) + dd { margin-bottom: 10vw; }
}

.movie_voice { display: flex; justify-content: space-between; }
.owner_img { width: 74px; }
.voice_txt { width: 680px; color: #000; letter-spacing: 0.05em; }

@media screen and (max-width: 767px) {
	.owner_img { width: 15.4vw; }
	.voice_txt { width: 70vw; color: #000; letter-spacing: 0.05em; font-size: 3.2vw; }
}

/* ===============================
   ギャラリー・モーダル制御
================================*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
.grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #000;
}
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, opacity .3s ease;
}
.grid-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.grid-item:hover::after { opacity: 1; }
.grid-item a:hover { opacity: 1; }
.grid-item:hover img { transform: scale(1.05); opacity: 1; }

.zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  background: url('../images/works/ic_zoom.svg') no-repeat center center;
  background-size: 31px 31px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  z-index: 10;
}
.grid-item:hover .zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

/* モーダル基本設計 */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95); /* 視認性を上げるため、透過白背景に微調整可能 */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity .4s ease;
}
.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-modal img {
  width: auto;
  height: auto;
  max-width: 80vh; 
  max-height: 80vh;
  width: 90%; 
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-modal img.visible { opacity: 1; }

/* YouTube動画コンテナ */
.movie-container {
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  position: relative;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.movie-container.visible { opacity: 1; }
.movie-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-counter {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 16px;
  color: #333;
  font-weight: 600;
  line-height: 1;
}

/* ナビゲーション */
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 31px;
  background-color: transparent;
  border: 1px solid #000000;
  border-radius: 100vh;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  z-index: 10010;
}
.gallery-prev::before,
.gallery-next::before {
  content: "";
  position: absolute;
  width: 12.5px;
  height: 1px;
  background-color: #000000;
  transition: all 0.3s ease;
}
.gallery-prev::after,
.gallery-next::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-top: 1px solid #000000;
  border-right: 1px solid #000000;
  transition: all 0.3s ease;
}
.gallery-next::after { transform: rotate(45deg); right: 18px; }
.gallery-prev::after { transform: rotate(-135deg); left: 18px; }

.gallery-prev:hover, .gallery-next:hover { background-color: #000000; }
.gallery-prev:hover::before, .gallery-next:hover::before { background-color: #ffffff; }
.gallery-prev:hover::after, .gallery-next:hover::after { border-color: #ffffff; }

.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

.gallery-close {
  position: absolute;
  width: 28px;
  height: 17px;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 1;
  line-height: 1;
  z-index: 10020;
}
.gallery-close img { width: 100%; height: auto; opacity: 1; }
.gallery-close:hover { opacity: 0.7; }

body.modal-open { overflow: hidden; }
.gallery-at {
  font-size: 11px;
  text-align: left;
  padding: 20px 0 100px 0;
  color: #636363;
}

/* --- モーダル レレスポンシブ対応 (768px以下) --- */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.9vw;
  }
  .gallery-modal img {
    max-width: 80vh; 
    max-height: 80vh;
    width: 90%; 
    object-fit: contain;
  }
  .movie-container {
    width: 90%;
    max-height: 50vh;
  }
  .gallery-prev { left: 5.3vw; top: auto; bottom: 3vw; }
  .gallery-next { right: 5.3vw; top: auto; bottom: 3vw; }
  .gallery-counter {
    font-size: 2.93vw;
    top: auto;
    bottom: 8vw;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Roboto", sans-serif;
    font-weight: 700;
  }
  .gallery-close {
    right: 5.3vw;
    top: 7vw;
  }
  .gallery-at {
    font-size: 2.6vw;
    padding: 3vw 0 14vw 0;
  }
}

/* ===============================
   ポストナビゲーション
================================*/
.post-navigation {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}
.post-navigation-inner {
    width: 775px;
    display: flex;
    justify-content: center;
    max-width: 100%; 
}
.post-navigation__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    min-width: 44px;
    min-height: 44px;
    transition: opacity 0.3s;
}
.nav-item:hover { opacity: 0.6; }
.nav-icon img { width: 7.5px; height: 8.5px; display: block; }
.nav-item.prev .nav-icon { transform: rotate(180deg); }
.nav-item.center {
    font-size: 14px;
    font-weight: 400;
    color: #172E59;
    letter-spacing: 0.1em;
    padding: 0 25px;
    min-width: auto;
}
.nav-placeholder { width: 44px; }

@media screen and (max-width: 767px) {
	.post-navigation {
	    max-width: 100%;
	    width: 100%;
	    margin: 0 auto;
	    display: flex;
	    justify-content: flex-end;
	}
	.post-navigation-inner {
	    width: 100%;
	    display: flex;
	    justify-content: center;
	    max-width: 100%; 
	}
	.nav-item.center {
	    font-size: 2.666vw;
	    color: #172E59;
	    letter-spacing: 0.1em;
	    padding: 0 6vw;
	    min-width: auto;
	}
	.nav-placeholder { width: 11vw; }
}





/* ====================================
   カテゴリーナビ・アクティブスタイル
==================================== */
/* 左エリアのカテゴリー選択時のスタイルを最優先適用 */
.filter-nav li.current a {
  border: #172E59 1px solid !important;
  background: #172E59 !important;
  color: #fff !important;
}

/* ====================================
   PCレイアウト時の動作保証
==================================== */
@media screen and (min-width: 769px) {
 .filter-area form {
  display: block !important;
 }
 .filter-heading {
  cursor: default;
 }
 .filter-heading::after {
  display: none;
 }
}

/* ====================================
   ページナビゲーション（Ajax / 共通）
==================================== */
.ajax-pagination {
  margin: 60px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.page-numbers {
  text-decoration: none;
  color: #1a2e4d;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: opacity 0.3s;
  border: none;
  background: none;
  width: 17px;
  height: auto;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
}

.page-numbers:hover {
  opacity: 0.7;
}

.page-numbers.current {
  font-weight: 500;
  background: none;
  border: none;
}

.page-numbers.current::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #1a2e4d;
}

.page-numbers.prev,
.page-numbers.next {
  width: 7.5px;
  height: 8.5px;
  text-indent: -9999px;
  background-image: url("../images/common/ic_nav.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.page-numbers.prev {
  transform: scaleX(-1);
}

.page-numbers.dots {
  border: none;
}

@media screen and (max-width: 767px) {
  .ajax-pagination {
    margin: 13vw auto;
    gap: 20px;
  }
  .page-numbers {
    font-size: 3.46vw;
  }
  .page-numbers.prev,
  .page-numbers.next {
    width: 13px;
    height: 13px;
  }
}

/* ====================================
   動画詳細 / 各種レイアウトコンテナ
==================================== */
.movie_ttl_outer {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #fff;
  transform: translate(-50%,-50%);
}
.movie_ttl {
  font-size: 18px;
  letter-spacing: 3px;
}
.movie_area {
  font-size: 12px;
  margin-top: 25px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
}

.l_movie_sec {
  background: #F0EEE7;
  padding: 100px 0 75px 0;
}
.movie-detail {
  width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  text-align: left;
}
.main-area {
  width: 775px;
  order: 2;
}
.side-area {
  width: 256px;
  order: 1;
}
.side_ttl {
  font-size: 13px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.side_ttl::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #172E59;
  margin-left: 15px;
}

.m_movie_sbox { margin-bottom: 70px; }
.movie_info { margin-bottom: 10px; }
.movie_info th {
  font-size: 14px;
  font-weight: 500;
  width: 135px;
  padding-bottom: 10px;
}
.movie_info td { 
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  padding-bottom: 10px;
  color: #000;
}
.movie_sns { display: flex; }
.movie_sns li a {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
}
.movie_sns li + li { margin-left: 22px; }
.movie_tags { display: flex; }
.movie_tags li + li { margin-left: 22px; }
.movie_tags li a {
  font-size: 14px;
  color: #000;
  line-height: 1;
}
.movie_tags li a::before {
  content: "#";
  padding-right: 4px;
}

.m_movie_cbox { margin-bottom: 100px; }
.m_movie_txt_b { color: #000; }

@media screen and (max-width: 767px) {
  .movie_ttl_outer {
    width: 100%;
    padding: 0 13vw;
    position: absolute;
    left: 50%;
    top: 50%;
    color: #fff;
    transform: translate(-50%,-50%);
  }
  .movie_ttl {
    font-size: 4vw;
    letter-spacing: 3px;
  }
  .movie_area {
    font-size: 2.66vw;
    margin-top: 4.26vw;
  }
  .l_movie_sec {
    background: #F0EEE7;
    padding: 8vw 5.3vw 15vw 5.3vw;
  }
  .movie-detail { width: auto; display: block; }
  .main-area { width: auto; }
  .side-area { width: auto; }
  .side_ttl {
    font-size: 3.46vw;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    margin-bottom: 7vw;
  }
  .side_ttl::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: #172E59;
    margin-left: 15px;
  }
  .movie_info th {
    font-size: 3.2vw;
    width: 29.3vw;
    padding-bottom: 4vw;
  }
  .movie_info td { 
    font-size: 3.2vw;
    line-height: 1.8;
    padding-bottom: 4vw;
  }
  .movie_sns li a {
    width: 6vw;
    height: 6vw;
  }
  .movie_sns li + li { margin-left: 5vw; }
  .movie_tags li + li { margin-left: 5vw; }
  .movie_tags li a { font-size: 3.2vw; }
  .m_movie_cbox { margin-bottom: 19vw; }
  .m_movie_txt_b { font-size: 3.2vw; line-height: 2; }
}

/* ====================================
   Q&A / 要望コンテナ
==================================== */
.request {
  background-color: #F2EFE6;
  font-size: 14px;
  line-height: 1.8;
  color: #172E59;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.request dt {
  width: 85px;
  font-weight: 400;
  position: relative;
  letter-spacing: 0.1em;
  padding-right: 20px;
  box-sizing: border-box;
  color: #172E59;
}
.request dt::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%);
  width: 9px;
  height: 11px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.request dt:nth-of-type(odd)::after { background-image: url("../images/common/ic_f.svg"); }
.request dt:nth-of-type(even)::after { background-image: url("../images/common/ic_q.svg"); }
.request dd {
  width: calc(100% - 85px);
  margin-left: 0;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.request dt:nth-of-type(even) + dd {
  color: #000000;
  margin-bottom: 60px;
  letter-spacing: 1.2px;
}
.request:last-child dt:nth-of-type(2n) + dd { margin-bottom: 0; }
.request dd:last-of-type { margin-bottom: 0; }

@media (max-width: 767px) {
  .request { padding: 0; font-size: 3.2vw; }
  .request dt { width: 18vw; padding-right: 5.8vw; }
  .request dt::after {
    right: 2.5vw;
    width: 9px;
    height: 11px;
  }
  .request dd { width: calc(100% - 18vw); margin-bottom: 4.5vw; }
  .request dt:nth-of-type(even) + dd { margin-bottom: 10vw; }
}

.movie_voice { display: flex; justify-content: space-between; }
.owner_img { width: 74px; }
.voice_txt { width: 680px; color: #000; letter-spacing: 0.05em; }

@media screen and (max-width: 767px) {
  .owner_img { width: 15.4vw; }
  .voice_txt { width: 70vw; font-size: 3.2vw; }
}

/* ====================================
   ギャラリー・モーダルウィンドウ制御
==================================== */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity .4s ease;
}
.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.movie-container {
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  position: relative;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.movie-container.visible { opacity: 1; }

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 31px;
  background-color: transparent;
  border: 1px solid #000000;
  border-radius: 100vh;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
}
.gallery-prev::before,
.gallery-next::before {
  content: "";
  position: absolute;
  width: 12.5px;
  height: 1px;
  background-color: #000000;
}
.gallery-prev::after,
.gallery-next::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-top: 1px solid #000000;
  border-right: 1px solid #000000;
}
.gallery-next::after { transform: rotate(45deg); right: 18px; }
.gallery-prev::after { transform: rotate(-135deg); left: 18px; }

.gallery-prev:hover, .gallery-next:hover { background-color: #000000; }
.gallery-prev:hover::before, .gallery-next:hover::before { background-color: #ffffff; }
.gallery-prev:hover::after, .gallery-next:hover::after { border-color: #ffffff; }

.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

.gallery-close {
  position: absolute;
  width: 28px;
  height: 17px;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10020;
}
.gallery-close img { width: 100%; height: auto; }

body.modal-open { overflow: hidden; }

.gallery-at {
  font-size: 11px;
  text-align: left;
  padding: 20px 0 100px 0;
  color: #636363;
}

@media (max-width: 768px) {
  .movie-container {
    width: 95%;
    max-height: 50vh;
  }
  .gallery-prev { left: 5.3vw; top: auto; bottom: 3vw; }
  .gallery-next { right: 5.3vw; top: auto; bottom: 3vw; }
  .gallery-close { right: 5.3vw; top: 7vw; }
  .gallery-at {
    font-size: 2.6vw;
    padding: 3vw 0 14vw 0;
  }
}

/* ====================================
   前後ポストナビゲーション
==================================== */
.post-navigation {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}
.post-navigation-inner {
    width: 775px;
    display: flex;
    justify-content: center;
    max-width: 100%; 
}
.post-navigation__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    min-width: 44px;
    min-height: 44px;
    transition: opacity 0.3s;
}
.nav-item:hover { opacity: 0.6; }
.nav-icon img { width: 7.5px; height: 8.5px; display: block; }
.nav-item.prev .nav-icon { transform: rotate(180deg); }
.nav-item.center {
    font-size: 14px;
    font-weight: 400;
    color: #172E59;
    letter-spacing: 0.1em;
    padding: 0 25px;
    min-width: auto;
}
.nav-placeholder { width: 44px; }

@media screen and (max-width: 767px) {
	.post-navigation-inner { width: 100%; }
	.nav-item.center {
	    font-size: 2.666vw;
	    padding: 0 6vw;
	}
	.nav-placeholder { width: 11vw; }
}


/* aタグ排除に伴うホバースタイルの補正 */
#filter-nav li {
    position: relative;
    transition: color 0.3s ease;
}
#filter-nav li:hover span {
    color: #172E59; /* ホバー時の文字色。デザインに合わせて適宜変更してください */
}
.custom-movie-link:hover figure img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}