@charset "utf-8";
/* CSS Document */

/*共通スタイル*/
html{
	font-size: 62.5%;
	overflow-x: hidden; /* 横スクロールを無効化 */
}


body{
	margin: 0;
	padding: 0;
	color: #000;
	font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "BIZ UDP明朝", "BIZ UD明朝", HGS明朝E, "ＭＳ Ｐ明朝", "MS PMincho", "Times New Roman", Times, Garamond, Georgia, serif;
	font-size: 1.6rem;
	font-weight: normal;
	line-height: 1.7;
	letter-spacing: 0.08rem;
	box-sizing: border-box; /* パディングとボーダーを含めて幅を計算 */
	overflow-x: hidden; /* 横スクロールを無効化 */
}


* {
    box-sizing: border-box
  } 

h1,h2,h3,h4,h5,h6,div,p,ul,li,a,dl,dt,dd{
	margin: 0;
	padding: 0;
}

img{
	width: 100%;
	
}

ul{
	list-style: none;
}

body a{
	text-decoration: none; /* リンクの下線を消す */
	color: #000000;
}
a:visited{
	color:#000000;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

section{
	margin-bottom: 150px;
}

@media (max-width: 768px) {
	section{
		margin-bottom: 65px;
	}
	}

/*フォント*/


h1,h2,h3,h4,h5,h6{
	font-weight: normal;
}

h2.sec_title_en{
	font-size: 10rem;	
}

h2.sec_title_ja{
	font-size: 4rem;
}

h3{
	font-size: 4rem;
}
h4{
	font-size: 3.5rem;
}
h4.model_name,title_en{
	font-size: 7.5rem;
	line-height: 1.2;
}

h5.title_en{
	font-size: 7.5rem;
}
h6{
	font-size: 2.5rem;
}


.fv_title,.sec_title_en,.lineup_wrap .menu,.model_name,.title_en,.type-text{
	font-family: 'Instrument Serif',serif,system-ui;
	font-weight: 400;
	font-style: normal;

}




/* スマホのみ表示---------スマホ向けのスタイル */
@media (max-width: 768px) {
  .pc_none {
    display: block; /* スマホで表示 */
  }
}

/* スマホのみ表示---------PC向けのスタイル */
@media (min-width: 769px) {
  .pc_none {
    display: none; /* PCでは非表示 */
  }
}


/* PCのみ表示----------スマホ向けのスタイル */
@media (max-width: 768px) {
  .sp_none {
    display: none; /* スマホでは非表示 */
  }
}

/* PCのみ表示--------向けのスタイル */
@media (min-width: 769px) {
  .sp_none {
    display: block; /* PCでは表示 */
  }
}


/*------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------*/




/*-----ファストビューfv-------------------------------------------------------------------------------*/

.fv_txt .fv_title{
	font-size: 4.5rem;
}

.fv_txt p {
    font-size: 2rem;
    line-height: 1.5;
}

/* スマホのみ表示--------スマホ向けのスタイル */
@media (max-width: 768px) {	
	.fv_txt .fv_title{
		font-size: 2.5rem;
	}
	
	.fv_txt p{
	font-size: 1.6rem;
}
}


/* スクロール誘導アニメーションのスタイル */
.scroll_item {
    position: absolute;
    bottom: 5%;
    right: 5%;
    transform: translateX(-50%);
    z-index: 3;

}



.scroll_item p {
    display: inline-block;
    margin-top: 10px;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    overflow: hidden; /* アニメーションが見切れないように設定 */
    height: 170px; /* 線のアニメーションエリアを設定 */
    writing-mode: vertical-rl; /* 文字を縦書き */
    transform: rotate(0deg); /* 左に倒す */
}

.scroll_item p:hover {
    opacity: 0.7;
}

.scroll_item p::after {
    content: '';
    position: absolute;
	
    top: 0; /* 上から出現 */
    transform: translateX(-50%);
    width: 1px; /* 線を細くする */
    height: 0;
    background: white;
    animation: scrollLineSmooth 1.5s infinite ease-in-out;
}

/*透明なレイヤー*/
.touch_layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* iframe より上に配置 */
    background: transparent;
    touch-action: pan-y; /* スワイプを有効化 */
}
	
	
/* 親要素を相対位置に設定 */
.con_lower_fv {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* テキスト要素のスタイル */
.fv_txt {
    position: absolute;
    bottom: 10%; 
    left: 5%; 
    text-align: left; 
    color: white;
    z-index: 2; /* 動画の上に重ねる */
}

.box_fv_yt {
    position: relative;
    z-index: 1; /* 動画のレイヤー */
}

/* スクロール誘導アニメーションのスタイル */
.scroll_item {
    position: absolute;
    bottom: 5%;
    right: 5%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll_item p {
    display: inline-block;
    margin-top: 10px;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    overflow: hidden; /* アニメーションが見切れないように設定 */
    height: 170px; /* 線のアニメーションエリアを設定 */
    writing-mode: vertical-rl; /* 文字を縦書き */
    transform: rotate(0deg); /* 左に倒す */
}

.scroll_item p:hover {
    opacity: 0.7;
}

.scroll_item p::after {
    content: '';
    position: absolute;
    top: 0; /* 上から出現 */
    transform: translateX(-50%);
    width: 1px; /* 線を細くする */
    height: 0;
    background: white;
    animation: scrollLineSmooth 1.5s infinite ease-in-out;

}

@keyframes scrollLineSmooth {
    0% {
        height: 0;
        opacity: 0;
    }
    30% {
        height: 100%; /* 線が下方向に伸びる */
        opacity: 1;
    }
    100% {
        height: 100%; /* 線をその場で保持 */
        opacity: 0; /* フェードアウト */
    }
}

/* メディアクエリ */
@media (max-width: 768px) {
    .scroll_item p::after {
        animation: scrollLineSmoothSmall 1.5s infinite ease-in-out;
    }

    #lp .box_fv_yt {
        aspect-ratio: 4/5;
    }

    #lp .box_fv_yt .yt_inner iframe, #lp .box_fv_yt .yt_inner #player {
		--z: 150%;
    }
}

@keyframes scrollLineSmoothSmall {
    0% {
        height: 0;
        opacity: 0;
    }
    30% {
        height: 100%; /* 線が下方向に滑らかに伸びる */
        opacity: 1;
    }
    100% {
        height: 100%; 
        opacity: 0; /* 線が消える */
    }
}


/*-----------ヘッダー-------------------------------------------------------------------*/

/*PCビュー*/

/* lp_headerのフローティングメニュー設定 */
.lp_header_inner {
  background-color: black; /* 背景色を黒に */
  color: white; /* テキストの色を白に */
  padding: 5px 20px; /* ヘッダーにパディングをつけて間隔を確保 */
  display: flex; /* フレックスボックスで両端揃え */
  justify-content: space-between; /* 両端に揃える */
  align-items: center; /* 垂直方向に中央揃え */
  position: fixed; /* フローティングさせる */
  top: 0; /* 画面の上部に固定 */
  width: 100%; /* ヘッダーを画面幅全体に広げる */
  max-width: 100%; /* 幅を画面幅に収める */
  z-index: 100; /* ヘッダーを最前面に配置 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* ヘッダーに影を追加して浮き上がる効果 */
  box-sizing: border-box; /* ボーダーとパディングを幅に含める */
}

/* ロゴとh1をフレックスで左寄せ */
.logo_h1 {
  display: flex;
  align-items: center;
  white-space: nowrap; /* h1を折り返さない */
  flex-shrink: 1; /* 親の幅が狭くなったときに縮小する */
}

/* ロゴの調整 */
.logo img {
  width: clamp(10px, 10vw, 70px); /* デバイスの幅に応じて、幅を40px〜70pxに制限 */
  height: auto;
  margin-right: 10px; /* ロゴとh1の間に余白を追加 */
}

.lp_header h1 {
  color: white; /* 白い文字 */
  font-size: clamp(1rem, 4vw, 2rem); /* フォントサイズをデバイス幅に応じて調整 */
  overflow: hidden; /* 親要素を超えないようにテキストを隠す */
  text-overflow: ellipsis; /* 省略記号を表示（オプション） */
  white-space: nowrap; /* テキストを折り返さない */
}

@media (max-width: 768px) {
  .lp_header h1 {
    font-size: clamp(0.8rem, 3vw, 1.5rem); /* スマホビューでさらに小さく */
  }

  .lp_header_inner {
    padding: 5px 10px; /* スマホ向けにパディングを縮小 */
  }

  .logo_h1 {
    flex-wrap: wrap; /* 必要に応じて子要素を折り返す */
  }
}

/* デバイスの幅が小さくなった時の処理 */
@media (max-width: 768px) {
  header .contact_btn {
    display: none; /* スマホビューで非表示 */
  }
	
	.logo img{
		margin-right: 0;
	}
}



/* contact_btnのスタイル */
.contact_btn {
  background-color:#696041; /* 背景をゴールドに */
  padding: 10px 40px 10px 30px; /* ボタンに適切なパディングを設定 */
  padding-right: 50px; /* 矢印用の余白を確保 */
  text-align: center; /* テキストを中央に配置 */
  text-decoration: none; /* リンクの下線を消す */
  display: inline-block; /* ボタンをインラインブロック要素に */
  position: relative; /* 矢印の位置を調整するためにrelativeに */
  transition: background-color 0.3s ease, color 0.3s ease; /* ホバー時のアニメーション */
  white-space: nowrap; /* テキストの折り返しを防ぐ */
  font-size: 2rem;
  color: #ffffff;
}

/* contact_btnのホバー効果 */
.contact_btn:hover {
  background-color:#696041; /* 背景をゴールドに */
}

/* contact_btnの矢印 */
.contact_btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 30px; /* 矢印がボタン内に収まる位置 */
  width: 8px;
  height: 8px;
  border-top: 2px solid #ffffff; /* 矢印の上の線 */
  border-right: 2px solid #ffffff; /* 矢印の右の線 */
  transform: translateY(-50%) rotate(45deg); /* 矢印を回転して表示 */
  transition: right 0.3s ease; /* ホバー時に矢印を右に移動 */
}

/* ホバー時に矢印を右に動かす */
.contact_btn:hover::after {
  right: 20px; /* ホバー時に矢印を右へ10px移動 */
}

@media (max-width: 768px) {
	.contact_btn{
		font-size: 1.6rem;
	}
}





/*新車ショールーム用ボタン*/
.showroom_contact1 {
  display: block;
  text-align: center; /* テキストの中央揃え */
  margin: 40px auto 0 auto; /* 要素自体を中央揃え */
  width: fit-content; /* 要素の幅を内容に合わせる */
}


/*ーーーースマホCTAボタンーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/
.cta_btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.cta_btn img {
  width: 100px; /* サイズはお好みで調整 */
  height: auto;
}


.reflection {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}
.reflection::after {
  content: "";
  display: block;
  width: 30px;
  height: 100%;
  position: absolute;
  top: -180px;
  left: 0;
  background-color: #FFF;
  opacity: 0;
  transform: rotate(45deg);
  animation: reflect 2s ease-in-out infinite;
  -webkit-transform: rotate(45deg);
  -webkit-animation: reflect 2s ease-in-out infinite;
}
@keyframes reflect {
  0% { transform: scale(0) rotate(45deg); opacity: 0; }
  80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
  81% { transform: scale(4) rotate(45deg); opacity: 1; }
  100% { transform: scale(50) rotate(45deg); opacity: 0; }
}
@-webkit-keyframes reflect {
  0% { transform: scale(0) rotate(45deg); opacity: 0; }
  80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
  81% { transform: scale(4) rotate(45deg); opacity: 1; }
  100% { transform: scale(50) rotate(45deg); opacity: 0; }
}


@media (max-width: 768px) {
  .cta_btn {
    display: block; /* スマホビューで表示 */
  }
}

/*-------ラインアップ-----------------------------------------------------------------------------*/

.model_layout{
	margin: 35px 0;
}

.model_group .item_block_img_txt{
	margin-bottom: 20px;
}


.model_group .txt_block{
	display: flex;
	flex-flow: column;
	justify-content: flex-end;
	text-align: center;
}

.model_btn_block{
	display: flex;
	justify-content: center;
}



.logo_amg{
}

.amg_series_area,.maybach_series_area{
	padding: 100px 0 20px 0;
}

.amg_series_area{
	background-color: #000000;
	color: #ffffff;	
}

.maybach_series_area{
	background-color: #e6e0d7;
}


.amg_series_area a{
	color: #ffffff;
}


.amg_series_area a:visited{
	color: #ffffff;
}

.amg_series_area h3,.maybach_series_area h3{
	width:40%;
	margin: 0 auto;
}

.amg_series_area .model_group,.maybach_series_area .model_group{
	padding-top: 20px;
}








.model_content .line_btn_inner{
	padding-bottom: 6px;
}

@media screen and (max-width: 768px) {
	.amg_series_area{
		padding-top: 60px;
	}
	}

/* amg_series_area内のmodel_menu_btnのデフォルトスタイル */
.amg_series_area .model_menu_btn {
  background-color: #ffffff; /* 背景を白に */
  color: #000000; /* 文字を黒に */
  border: 1px solid #000000; /* 黒のボーダー */
  transition: background-color 0.3s ease, color 0.3s ease; /* ホバーやクリック時のアニメーション */
}

/* ホバー時のスタイル */
.amg_series_area .model_menu_btn:hover {
  background-color: #808080; /* 背景をグレーに */
  color: #ffffff; /* 文字を白に */
}

/* クリック時（アクティブ状態）のスタイル */
.amg_series_area .model_menu_btn.active_btn {
  background-color: #808080; /* 背景をグレーに */
  color: #ffffff; /* 文字を白に */
  border: 1px solid #ffffff;

}



/* sub_model_content_wrapが開いたら、ボタンの背景と文字色をデフォルトに戻す */
.amg_series_area .sub_model_content_wrap {
  background-color: #ffffff; /* 背景を白に */
  color: #000000; /* 文字を黒に */
  border: 1px solid #ffffff;
}


/* スマートフォン用のフォントサイズを調整 */
@media screen and (max-width: 768px) {
    body {
        font-size: 1.4rem; /* スマホ用のフォントサイズ */
    }
	h2.sec_title_en{
		font-size: 4rem;	
	}

	h2.sec_title_ja{
		font-size: 1.8rem;
	}

	h3{
		font-size: 1.8rem;
	}
	h4{
		font-size: 1.8rem;
	}
	h4.model_name,title_en{
		font-size: 3rem;
		line-height: 1.3;
	}

	h5.title_en{
		font-size: 3.5rem;
	}
	h6{
		font-size: 2rem;
	}

    /* 他に特定の要素のフォントサイズを調整したい場合 */
    small {
        font-size: 1rem; /* フッターの小さなテキストのフォントサイズを調整 */
    }
	
	.category_btn,.menu_btn,.model_detail_menu .model_menu_btn,.faq_menu_btn{
		font-size: 1.6rem;
	}
		
}




/*モデル画像*/

.model_image_wrapper {
  width: 100%; 
  position: relative;
}

.model_image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 のアスペクト比を維持 */
}

.model_image img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.model_image .hover-img {
  opacity: 0; /* ホバー前は非表示 */
}


@media (hover: hover) and (pointer: fine) {
  .model_image_wrapper:hover .hover-img {
    opacity: 1; /* ホバー時に表示 */
  }

  .model_image_wrapper:hover .main-img {
    opacity: 0; /* ホバー時にメイン画像を非表示 */
  }
}

.txt_block {
  padding: 0 10px;
}

.model_name {
  font-size: 2rem;
  margin-bottom: 20px;
}



/*ーーーーラインアップーモデル詳細ーサブコンテンツーー*/



.sub_model_content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease; /* ふんわり表示するためのトランジション */
    margin: 20px;
    padding: 30px;
}


/* コンテンツが表示されるときのスタイル */
.visible {
    display: block;
    opacity: 1;
}

/*サブモデルコンテンツラインアップ*/

 .dynamic_area .cms_img{
	                 justify-content: space-evenly;
}.dynamic_area .cms_img .img {
    overflow: visible;
}.item {
  display: flex;
  flex-direction: column;
  width: 24%; /* 要素の幅を指定。任意で調整可能 */
  margin-bottom: 20px; /* 下の要素との間隔 */
}


.box_catch_txt {
  display: flex;
  flex-direction: column;
  height: 100%; /* 見出しの高さ揃えを支援 */
}

.st.tmp_st_s {
  flex-grow: 1;
  display: flex;
  justify-content:left;
  margin: 0;
  border-bottom:1px solid #000;
}

.tmp_txt {
    min-height: 15em;
}

@media only screen and (max-width: 767px) {
    .sub_model_content .dynamic_area .cms_img.col4 .item {
        margin-top: 0;
    }
}

/* レスポンシブ対応：画面幅が768px以下の場合 */
@media (max-width: 768px) {
  .item_block_img_txt {
    flex-direction: column; /* 縦に並べる */
  }

  .model_image_wrapper, .txt_block {

    padding: 0;
  }
	
  .sub_model_content {
	  margin: 0;
	}
	
  .sub_model_content_wrap.active{
		  padding: 5px;
	  }
}

/*モデル詳細アコーディオン*/

/* sub_model_content_wrap の初期状態で中身を非表示、ボーダーのみ表示 */
.sub_model_content_wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
    border: 1px solid #000000; /* ボーダーを初期状態で表示 */
    padding: 0 10px; /* 内部の要素が見えないように余白を調整 */
}


.sub_model_content_wrap.active {
    height: auto; /* コンテンツの高さに応じて調整 */
	max-height: 1000px ;
    border: 1px solid #000000;
	overflow: visible;
	padding: 5px;
}

.sub_model_content {
    opacity: 0;
    transition: opacity 0.5s ease;
    padding:20px;
}

.sub_model_content_wrap.active .sub_model_content {
    opacity: 1;
}

/*マイバッハのサブコンテンツ背景色*/
.maybach_series_area .sub_model_content_wrap{
	background-color: #ffffff;
}

@media (max-width: 768px) {
.sub_model_content_wrap.active {
	padding: 5px;
}
}
/*----------矢印ありテキストボタン----------------------------------------------------------*/

.arrow{ 
    position: relative;
    display: inline-block;
    padding: 0 0 0 30px;
    vertical-align: middle;
    text-decoration: none;
} 
.arrow::before,
.arrow::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    content: "";
    vertical-align: middle;
}

.arrow_01::before{
    width: 12px;
    height: 12px;
    border-top: 1px solid #000;
    border-right: 1px solid #000;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.line_btn_inner {
    position: relative;
    display: inline-block;
    text-align: left;
	padding-right: 15px;
    border-bottom: 1px solid black; /* 通常時の線 */
}


.line_btn_inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.4s ease; /* アニメーションの設定 */
}

.line_btn_inner:hover {
    border-bottom: none; /* ホバー時に元の線を消す */
}

.line_btn_inner:hover::after {
    width: 100%; /* ホバー時に左から右に伸びる */
}

/* amg_series_area内の特別なスタイル */
.amg_series_area .line_btn_inner,.bg_black .line_btn_inner{
    border-bottom: 1px solid white; /* 通常時は白い線 */
}

.amg_series_area .line_btn_inner:hover {
    border-bottom: none; /* ホバー時に元の白い線を消す */
}

.amg_series_area .line_btn_inner::after {
    background-color: white; /* ホバー時も白い線 */
}

.model_group .line_btn{
	margin: 0 20px;
	font-size: 3rem;
}


.amg_series_area .arrow_01::before,.bg_black .arrow_01::before{
	border-top: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
}

.amg_series_area .line_btn_inner{
		border-bottom: 1px solid #ffffff;
}



/*-------1カラム------------------------------------------*/

.col1_item{
    margin: 1%; /* アイテム間に少しマージンを追加 */
}


/*-------2カラム------------------------------------------*/

/* col2_block の各項目をフレックスコンテナにする */
.col2_block,.col2_lock_block {
    display: flex;
    flex-wrap: wrap; /* 複数行に対応させる */
	margin: 20px 0 10px 0;
}

.col2_item {
    flex: 1 1 48%; /* 各アイテムを横幅の48%にし、左右のマージンを残す */
    margin: 1%; /* アイテム間に少しマージンを追加 */
    display: flex;
    flex-direction: column; /* アイテム内の要素を縦方向に揃える */
}
@media screen and (max-width: 768px) {
     .col2_block {
         display: flex;
		 flex-direction: column;
     }
     .col2_block .col2_item {
         width: 100%;
         margin: 10px auto;
     }
 }




/*---------画像とテキスト------------------------------------- */
 
 .item_block_img_txt{
     display: flex;
 }

.item_block_img_txt .txt_block,.item_block_img_txt .item_image{
     width: 100%;
     margin: 0 auto;
	 padding:20px;
}


.item_block_img_txt p{
	margin: 20px 0;
}	

 
 @media screen and (max-width: 768px) {
     .item_block_img_txt,.voice_item{
         display: block;
     }
     .item_block_img_txt .item_image {
         width: 100%;
         margin: 0 auto;
     }
     .item_block_img_txt .txt_block {
         width: 100%;
         margin: 0 auto;
     }
 }


.item_block_img_txt {
  flex-direction: row-reverse;
  justify-content: space-between;
  margin-bottom: 80px;
}

.model_layout:nth-child(even) .item_block_img_txt {
  flex-direction: row; /* 偶数番目では画像が左、テキストが右 */
}


.item_block_img_txt:nth-child(even) {
  flex-direction: row;
}

.item_image img {
  width: 100%;
  height:auto;
}

.flow_group{
	padding-top: 30px;
	margin-top: 20px;
}

.flow_group .row{
	flex-direction: row;
}

@media (max-width:768px) {

  .item_block_img_txt {
    flex-direction: column;
  }
  .item_image img {
    width:100%;
    height:auto;
  }
	
	.item_block_img_txt .txt_block,.item_block_img_txt .item_image{
		padding: 0;
	}
	
	.item_image{
		text-align: center;
	}
	
}



/*--------------拠点情報-----------------------------------------------------------*/


dl .table_line {
  display: flex;
}

.item_image {
  position: relative;
  width: 100%;
}

.main_img,
.hover_img {
  width: 100%;
  height: auto;
  transition: opacity 0.5s ease; /* ふんわりと切り替わるようにトランジションを設定 */
}

/* ホバー用の画像は初期状態で非表示 */
.hover_img {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* PC向けホバー効果（768px以上の画面幅） */
@media (min-width: 769px) {
  .item_image:hover .hover_img {
    opacity: 1; /* ホバー時に表示 */
  }

  .item_image:hover .main_img {
    opacity: 0; /* ホバー時にメイン画像を非表示 */
  }
}


/*ーーーーーーーーお客様の声ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/


.voice_item {
    display: grid;
    grid-template-columns: 220px auto; /* 画像とテキストの列幅を指定 */
    grid-gap: 20px; /* 画像とテキストの間にスペースを設定 */
    align-items: center; /* 画像とテキストを中央揃えにする */
	border: 1px solid #000000;
	padding: 50px 70px;
	margin-bottom: 20px;
}



.voice_item img{
	width: 220px;
}

.voice_group h4{
	font-size: 3rem;
	border-bottom: 1px solid #000000;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.voice_group .txt_block{
	 width: 100%;
}
.voice_group .voice_note p{
	text-align: right;
	font-size: 1.2rem;
}


/* スマホのみのスタイル */
@media (max-width: 768px) {
  .voice_item {
    display: flex;
    flex-direction: column; /* 要素を縦に並べる */
    align-items: center; /* 中央に揃える */
    text-align: left; /* テキスト全体は左揃え */
	  padding: 50px 25px;
  }

  .voice_item img {
    margin-bottom: 20px; /* 画像とテキストの間に余白を追加 */
  }

  .voice_group .txt_block {
    padding-left: 0; /* テキスト部分の左側の余白をなくす */
    padding-right: 0; /* 必要に応じて右側の余白もなくす */
  }

  .voice_group h4 {
    text-align: center; /* タイトルを中央揃え */
	font-size: 1.6rem;
  }

  .voice_group p {
    text-align: left; /* p要素を左揃えにする */
  }

  .voice_group .note p {
    text-align: right;
  }
}

/*--------------よくある質問--------------------------------------------------------*/

.question_box .text p{
	font-size: 1.9rem;
}

@media (max-width:768px) {
	.question_box .text p{
		font-size: 1.5rem;
	}
}


/*アコーディオンメニュー*/
.faq_content {
  display: none;
}

.faq_content.active {
  display: block;
}




.content_inner{
	display: flex;
	justify-content: space-between;
	width: 100%;
}
.type_text_group{
	display: flex;
}


.faq_item .text,.icon_wrap{
	padding-top: 30px;
}

.faq_item a{
	text-decoration: underline;
}

.question_box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.icon_wrap{
	margin-left: 0 20px;
}


.answer_box {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

@media (max-width:768px) {
	.icon_wrap{
		margin: 0 3px 0 0;
	}
}





/* アクティブなメニューを開く */
.faq_item.active .answer_box {
  max-height: 3000px;
  opacity: 1;
}

.type{
	padding: 0 35px;
}
.type-text{
	font-size: 5rem;
}

.answer_box .type-text{
	color:rgba(160,160,160,1.00);
	padding-left: 5px;
}

@media (max-width:768px) {
	
	.type{
	padding: 5px 10px 5px 0;
}
.type-text{
	font-size: 4rem;
}
	.faq_item .text, .icon_wrap{
		padding-top: 17px;
	}
	

}





/*----------------＋から－へ変形----------*/

.icon {
  position: relative;
  width: 35px;
  height: 35px;
  display: block;
  transition: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  will-change: transform;
}
.icon:hover {
  transform: scale(0.92);
}
.icon:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 75%;
  height: 2px;
  border-radius: 10px;
  background: #000;
  display: block;
}
.icon:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 2px;
  height: 75%;
  border-radius: 10px;
  background: #000;
  display: block;
  transition: 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}


.icon.active {
  transform: rotate(180deg);
}
.icon.active:after {
  transform: translate(-50%, -50%) rotate(90deg);
}

@media (max-width: 768px) {
	.icon{
		width: 25px;
		height: 25px;
	}
	.icon_wrap{
		margin-left: 0;
	}

}


/* faq_contentのアニメーション */
.faq_content{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
}

.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  max-height: 10000px;
}

/*--------メニューボタン------------------------------------*/

/* 親要素のスタイル */
.menu {
  display: flex; /* Flexboxを使用 */
flex-wrap: wrap;
  justify-content: space-between; /* ボタンの間にスペースを確保 */
  padding: 0;
  margin: 0;
  list-style: none; /* リストスタイルを消す */
  width: 100%; /* 親要素の幅を100%にする */
}

.lineup_menu{
  font-size: 3rem;	
}

.faq_menu{
	margin-bottom: 30px;
}

/* 子要素 (menu_btn) のスタイル */
.category_btn,.menu_btn,.model_menu_btn,.faq_menu_btn {
  flex-grow: 1; /* ボタンを均等に拡張 */
  text-align: center; /* テキストを中央揃え */
  padding: 10px 0; /* 適切なパディングを追加 */
  border: 1px solid black; /* ボタンに枠線を追加 */
  cursor: pointer; /* マウスカーソルを指マークにする */
  transition: background-color 0.3s ease, color 0.3s ease; /* ホバー時のアニメーション */
  white-space: nowrap; /* ボタン内のテキストが改行されないようにする */
}
.model_menu_btn{
	font-size: 2.8rem;
	line-height: 1.2;
}

/* ボタンのホバー効果 */
.category_btn:hover,.menu_btn:hover,.model_menu_btn:hover,.faq_menu_btn:hover {
  background-color: #000; /* ホバー時の背景色 */
  color: white; /* ホバー時の文字色 */
}


.menu .active_btn {
    background-color: black;
    color: white;
}

.menu .active_btn a{
	color: #ffffff;
}

.menu li.category_btn a{
	color: inherit;
}



/* スマホビュー用 (768px以下) */
@media (max-width: 768px) {
  .menu {
    justify-content: center;
  }

  .category_btn,.menu_btn,.model_menu_btn,.faq_menu_btn {
    flex: 0 0 22.5%; /* 4つ並べるために幅を24%に設定 */
    margin: 1%; /* マージンを追加して均等なスペースを確保 */
    box-sizing: border-box; /* ボックスサイズを枠線も含めて調整 */
  }
}





/*--------h2セクションタイトル----------------------------------------------------------------*/
/* hgroup全体を中央揃え */
.hgroup {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  align-items: center; /* 中央に揃える */
  margin: 100px 0 50px 0;
  text-align: center;
}

/* sec_title_en と title_en_wrap のスタイル */
.title_en_wrap,.value_title_ja {
  border-bottom: 2px solid #000000; /* アンダーライン */
  margin-bottom: 6px;
  padding: 0 20px; 
}

.sec_title_en, .sec_title_ja,.value_title_en,.value_title_ja {
  display: inline-block;
  opacity: 0; /* 初期状態は非表示 */
  transform: translateY(30px); /* 下に配置 */
  transition: opacity 0.8s ease, transform 0.8s ease; /* アニメーション */
  line-height: 1.2;
  padding: 0 20px; 
}


/* スクロールで表示するアニメーション */
.hgroup.in-view .sec_title_en,
.hgroup.in-view .sec_title_ja, 
.hgroup.in-view .value_title_en, 
.hgroup.in-view .value_title_ja{
  opacity: 1; /* 表示 */
  transform: translateY(0); /* 元の位置に移動 */
}

@media (max-width: 768px) {
  
 .hgroup{
	 margin: 50px 0 20px 0;
	}
}


/* sec_title_jaのスタイル調整 */
.sec_title_ja {
  margin-top: 20px;
}

@media (max-width: 768px) {
.sec_title_ja {
  margin-top: 5px;
}
	
}



/*ーーーーーーアフターサービスーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/


.txt_block_center h4{
	text-align: center;
		margin: 20px 0;

}

/* txt_block_center の高さを揃えるために flex-grow を追加 */
.txt_block_center {
    flex-grow: 1; /* コンテンツが少ない方でも高さを引き伸ばす */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* テキストを上に揃える */
}

/* line_btn を中央に配置するために親要素内で整列 */
.line_btn {
    margin-top: auto; /* 親要素内で下に固定 */
    text-align: right; /* 水平方向に中央揃え */
}

.line_btn_inner {
    display: inline-block; /* インラインブロック要素として中央に揃える */
	padding-bottom: 3px;
	
}


.detail_content{
	margin: 20px;
}


/*アフターサービス＋iconアイコン*/

/* アイコンを右寄せ */
.detail_btn .icon_wrap {
    display: flex; /* フレックスボックスを利用 */
    justify-content: flex-end; /* 右寄せ */
    align-items: center; /* 縦方向で中央揃え */
}

/* アイコン自体のスタイル */
.detail_btn .icon {
    width: 24px; /* アイコンのサイズ */
    height: 24px;
	margin-bottom: 5px;
}


	

.text_grow {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  margin: 0;
}



	
/*ーーーーーーBestExperienceトップーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/
.be_top_wrap{
	height: auto;
}

.be_top {
  background-image: url("https://www.stern-tennoji.co.jp/datas/images/2024/12/14/dbae3593fb55422b9b55c5aefea9bb74e83b8b7e.jpg"); /* 画像のパスを指定 */
  background-size: cover; /* 画像をコンテナにフィットさせる */
  background-position: center; /* 画像を中央に配置 */
  background-repeat: no-repeat; /* 繰り返しを無効にする */
  width: 100%; /* 幅を100%にする */
  display: flex; /* コンテンツを中央揃えにするための設定 */
  align-items: center; /* 縦方向で中央揃え */
  justify-content: center; /* 横方向で中央揃え */
  margin-bottom: 70px;
}


.aboutus_group {
  color: #ffffff;
  
}

.be_copy_wrap {
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); /* 左から右にかけて透明になるグラデーション */
  width: 100vw; /* 画面幅いっぱいに広げる */
  margin: 500px 0 20px 0;
  padding: 60px 0; /* 必要に応じて余白を調整 */
}

.be_copy {
  max-width: 1200px; /* テキストやコンテンツを1200pxに制限 */
  margin: 0 auto; /* コンテンツを中央揃え */
  padding: 0 20px; /* コンテンツに左右の余白を追加 */
}


.be_copy p{
	font-size: 6rem;
	line-height: 1.5;
}

.be_top h4{
	margin: 0;
	text-align: left;
	font-size: 6rem;
}


/* スマホビュー用 (768px以下) */
@media (max-width: 768px) {
	
	.be_top {
	background-image:url("https://www.stern-tennoji.co.jp/datas/images/2024/12/19/16936ec6f80d259cfef554ca39583279aecaa1f5.jpg");
    display: flex; /* 子要素に合わせて親要素の高さを調整 */
    flex-direction: column; /* 縦に並べる */
    justify-content: flex-start; /* 子要素が上から順に配置される */
    align-items: stretch; /* 子要素が親の幅に合わせて伸びる */
    height: auto; /* 子要素の高さに応じて自動で広がる */
    width: 100%; /* 幅を100%に設定 */
	padding: 30px 0 60px 0;
	margin-bottom: 50px
}

	.be_copy_wrap{
		margin-top: 50px;
	}
	
	.be_copy p{
		font-size: 2.6rem;
	}
	
	
}


/*ーーーー来店の流れーーーーーーーーーーー*/

h3{
	text-align: center;
	margin: 20px 0;
}

/* 親要素で中央揃え */
.flow_title {
    text-align: center; /* 親要素で中央寄せ */
}

h3.bg_h3 {
    display: inline-block; /* インラインブロックで中央揃え */
    position: relative;
    z-index: 1; /* テキストを前面に表示 */
    margin: 0;
    padding: 0 10px; /* テキストに余白をつける（オプション） */
}

h3.bg_h3::before {
    content: '';
    position: absolute;
    left: -10px; /* テキストにしっかりかぶるように調整 */
    top: 50%;
    transform: translateY(-50%) skewX(-45deg); /* 角度をさらに倒す */
    background-color: #E8E8E8; /* グレーの背景色 */
    width: 50px; /* 幅を広げる */
    height: 90px; /* 高さを大きくする */
    z-index: -1; /* 平行四辺形をテキストの背後に配置 */
}
		
.flow_group h4{
	text-align: left;
	margin: 0;
}

.flow_group .item_image{
	padding:0;
}

.flow_group .txt_block{
	padding: 0 20px;
}
.flow_group .bg_black{
	background: #000000;
	color: #ffffff;
	padding: 40px;
	margin-bottom: 40px;
}

.flow_group .item_block_img_txt{
	margin-bottom: 30px;
}

h5{
	text-align: center;
}

.ex_wrap{
	border: 2px solid #ffffff;
	padding: 20px;
}


h5.title_en {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

h5.title_en::before,
h5.title_en::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50%; /* 線の長さ */
  height: 1px; /* 線の太さ */
  background-color: #ffffff; /* 線の色 */
}

h5.title_en::before {
  left: 0;
}

h5.title_en::after {
  right: 0;
}

h5.title_en span {
  padding: 0 30px; /* テキストの左右に余白をつけて線と分離 */
  background-color: #000000; /* テキスト部分に背景色を設定（必要に応じて調整） */
  position: relative;
  z-index: 1; /* テキストを線の上に表示 */
}

h6{
	border-bottom: 1px solid #ffffff;
	padding: 10px;
}

@media (max-width: 768px) {
	.flow_group .bg_black{
		padding: 10px;
	}	

	.flow_head{
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items:center;
		font-size: 1.8rem;
		padding: 5px 20px;
	}
	.flow_head img{
		width: 90px;
	}
	
.flow_group .txt_block{
	padding: 0 10px;
	}
}
/*------------Experience--------------------------------*/


.ex_group {
  display: flex;
  flex-direction: column; /* 上下に並べる */
  width: 100%;
}

.ex_item {
  width: 60%;
  margin-bottom: 20px; /* 要素間のスペースを追加 */
}

.ex_item_wrap1 .ex_item {
  align-self: flex-start; /* 左寄せ */
}

.ex_item_wrap2 .ex_item {
  align-self: flex-end; /* 右寄せ */
}

.ex_item_wrap1 {
  width: 100%;
  padding: 20px;
  background-image: url("https://www.stern-tennoji.co.jp/datas/images/2024/10/20/3178e88b1c12008782e6b4b2a0a13d513bd57353.gif"); /* 背景画像のパス */
  background-position: right center; /* 背景画像を右に配置 */
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  justify-content: flex-start; /* テキストを左寄せ */
}

.ex_item_wrap2 {
  width: 100%;
  padding: 20px;
  background-image: url("https://www.stern-tennoji.co.jp/datas/images/2024/11/02/f984a913df23c63f2e577f75ff5ee07374fa4a87.gif"); /* 背景画像のパス */
  background-position: left center; /* 背景画像を左に配置 */
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  justify-content: flex-end; /* テキストを右寄せ */
}

.ex_item_txt {
  flex: 1;
  z-index: 1;
}
.ex_copy{
	font-size: 2.2rem;
	padding: 10px 0;

}

@media (max-width: 768px) {
  .ex_item_wrap {
    background-position: center;
    flex-direction: column;
  }

  .ex_item {
    width: 100%;
  }

  .ex_item_txt {
    margin: 0;
	  padding: 0;
	  text-align: center;  
  }
	
	.ex_item_txt p{
		text-align: left;
	}
  .ex_wrap{
	padding: 10px;
  }
  
	.ex_item_wrap1,.ex_item_wrap2{
		padding: 0;
		background-image: none;
	}
	
	.ex_group h6{
		display: inline-block;
		text-align: center;
		margin:10px;
	}
	
	


	
}


/*ーー拠点情報（詳細）ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/


/* スマホ時：常に2番目の画像を表示 */
@media screen and (max-width: 768px) {
    .showroom_image_sp .main_img {
        display: none;
    }

    .showroom_image_sp .hover_img {
        opacity: 1;
        position: static;
    }
}



/*ーーーーーー拠点情報配置ーーーーーーーーーーーーー*/





/* showroom_infoの調整 */
.showroom_info {
display: grid;
  grid-column-gap: 20px; /* グリッド項目間のスペース */
  max-width: 100%;
  overflow:hidden;
  min-height: 350px; /* 最低限の高さを指定 */
}

.showroom_name { grid-area: 1 / 1 / 2 / 3; }
.showroom_info_detail { grid-area: 2 / 1 / 3 / 2; }
.contact_box { grid-area: 3 / 1 / 4 / 2; }
.map { grid-area: 2 / 2 / 4 / 3; }



.showroom_group .col2_item{
	padding-bottom: 20px;
}

/* showroom_nameのスタイル */
.showroom_name {
  grid-column: 1 / 3;
  margin: 10px auto;
  text-align: center;

}

.showroom_name h4{
  font-size: 2.5rem;	
}
/* showroom_info_detailの調整 */
.showroom_info_detail {
  grid-column: 1 / 2; /* 左側のカラム */
  max-width: 100%;
}

/* contact_boxの調整 */
.contact_box {
 grid-column: 1 /  2; /* 左側のカラムに配置 */
  display: grid; /* Gridレイアウトを保つ */
  align-items: center; /* 垂直方向に中央揃え */
  width: 100%;
  margin-top: 10px;
  background-color: #696041;
  border: 1px solid #ddd;
  text-align: center;
}

/* mapの調整 */
.map {
  grid-column: 2 / 3; /* 右側のカラムに配置 */
  width: 100%; /* 親要素いっぱいに広げる */
  height: 100%; /* 親要素の高さいっぱいに広げる */
}

/* iframe（Google Map）をグリッドいっぱいに広げる */
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


@media (max-width: 768px) {
  .showroom_info {
    grid-template-columns: 1fr; /* 一列レイアウトに変更 */
    grid-column-gap: 10px;
    min-height: auto; /* 自動調整 */
    overflow: visible;
  }

  .showroom_name {
    grid-area: 1 / 1 / 2 / 2;
    text-align: center;
    margin: 10px auto;
  }

  .showroom_info_detail {
    grid-area: 2 / 1 / 3 / 2;
    max-width: 100%;
  }

  .contact_box {
    grid-area: 4 / 1 / 5 / 2;
    width: 100%;
    margin-top: 10px;
  }

  .map {
    grid-area: 3 / 1 / 4 / 2;
    width: 100%;
    height: auto; /* スマホ時の高さを自動に */
  }

  .showroom_name h4 {
    font-size: 1.8rem;
  }

  .showroom_group .col2_item {
    margin-bottom: 50px;
  }
}



/* dl, dt, dd の調整 */
dl {
  display: flex;
  flex-direction: column;
}

.table_line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  min-width: 17em;
}

dt {
  white-space: nowrap; /* 改行しない */
  margin-right: 10px;
  flex-shrink: 0; /* 狭くなっても幅を縮めない */
  width:5em;
  text-align: center;
}

dd {
  flex-grow: 1; /* 可変幅にする */
  word-break: break-word; /* 必要に応じて改行 */
  margin: 0;
}

.showroom_info_detail a{
	padding-bottom: 3px;
	border-bottom: 1px solid #000000;
}

/*----お問合せ------------------------------------------------------*/

/*contact問い合わせ*/

.contact_group{
  width: 100%; /* 横幅いっぱい */
  height: auto; /* 高さも画面いっぱい */
  background-image: url("https://www.stern-tennoji.co.jp/datas/images/2025/06/13/a4e1baac6658992ef22059fcb62b26c18c2cc7de.jpg"); /* 背景画像を設定 */
  background-size: cover; /* 画像をアスペクト比を維持しつつ全面に表示 */
  background-position: bottom center; /* 中央揃え */
  background-repeat: no-repeat; /* 繰り返しなし */
  padding-bottom: 80px;
}

/* テキストのコンテナ（重ねる） */
.contact_block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2; /* 三角形の上に表示 */
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
  .contact_sec_p {
    font-size: 1.4rem; /* スマホでは少し小さく */
  }
}


.contact_link_group{
	padding: 0 30px;
	margin:50px auto;
	
}

.contact_link_group p{
	background-color: #ffffff;
	padding: 20px 5px;
	margin: 15px 0;
	text-align: center;
	font-size: 2rem;	
}

@media (max-width: 768px) {
	.contact_link_group{
	padding: 0;
	margin: 0;
}

	.contact_link_group p{
		white-space: nowrap; /* 折り返し防止 */
		display: inline-block; /* 幅を内容に合わせる */
		min-width: 100px; /* 最小幅を指定 */
		max-width: 100%; /* 画面幅に応じて広がる */
		font-size: clamp(8px, 3vw, 12px); /* 12px以上、3vwのサイズ、最大24px */
		padding: 10px 5px;
	}
}





.contact_sec_p{
	text-align: center;
	font-size: 2.5rem;
	margin-top: 80px;
	margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
	.contact_sec_p{
		margin-top: 25px;
	   	margin-bottom: 15px;

	}
}


/*PCでのみホバー時バウンド*/
@media screen and (min-width: 769px) {
.contact_img img {
    transition: transform 0.5s cubic-bezier(0.25, 1.25, 0.5, 1.5); /* バウンド効果 */
}

.contact_img:hover img {
    transform: translateY(-10px); /* ホバー時に画像を10px上に移動 */
}
}

/*スマホ時のみ自動でバウンド*/
@media screen and (max-width: 768px) {

.bounce-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.5s ease-out; /* アニメーションの初期スピードをゆっくりに */
}

.bounce-animation.visible {
    opacity: 1;
    transform: translateY(0);
    animation: bounce 2s infinite ease-in-out; /* 2秒かけて繰り返しバウンド */
}
}

@keyframes bounce{
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px); /* 高さを少し強調 */
    }
	}
	


@media screen and (max-width: 768px) {
	.contact_sec_p{
		font-size: 1.6rem;
	}
}


.note{
	font-size: 1.2rem;
	line-height: 1.2;
	margin-top: 30px;
    padding-top: 30px;
	border-top: 1px solid #000;


}

@media screen and (max-width: 768px) {
	.note{
		font-size: 1rem;
	}
}



/*-----フッター------------------------------------------------------*/

.footer_group{
	display: flex;
	align-items: center;
	justify-content: center;
}

footer.bg_black{
	background: #000000;
	color: #ffffff;
	padding: 15px 0 5px 0;
}

.bg_black a{
	color: #ffffff;
}

.bg_black a:visited{
	color: #ffffff;
}

footer .line_btn{
	text-align: left;
	padding-bottom: 10px;
}

.footer_group .txt_block{
	width: 50%;
	border-left: 1px solid #ffffff;
	padding: 10px 65px;
	text-align: left;

}

footer img{
	max-height: 95px;
	width: auto;
}
.word_logo {
  width: 50%;
  text-align: center;
  max-width: 100%; /* 親要素からはみ出さないように設定 */
}

.word_logo img {
  max-width: 100%; /* 親要素の幅に収める */
  max-height: 50px; /* アスペクト比を保ちながら高さを自動調整 */
}

.company_name{
	font-size: 1.4rem;
	padding: 10px 0 5px 0;
	text-align: left;
}

footer .line_btn{
	font-size: 1.3rem;
}
small{
	display: block;
	color: #838383;
	text-align: center;
}

@media screen and (max-width: 768px) {
  .footer_group {
    flex-flow: column; /* 縦並びにする */
    align-items: baseline;
	scale:0.9;
  }

  .word_logo, .footer_group .txt_block {
    width: 80%; /* スマホ用の幅調整 */
    padding: 0;
    border-left: none; /* テキストブロックのボーダーを削除 */
    text-align: left; /* テキストを左揃え */
  }

  .word_logo img {
    max-width: 70%; /* デバイス幅が小さいときは画像のサイズを小さくする */
  }
 }

/*----サブコンテンツギャラリー----------------------------------------------------------------------*/

		
.gallery_slider{
			padding:10px 20px;
			max-width: 1200px;
			margin: 0 auto;
		}		
		
.wrap_lineup_pc {
	 position: relative;
	z-index: 1; /* 他の要素よりも上に表示 */
}


.wrap_lineup_box_pc {
    max-width: 1200px; /* .wrap_lineup_pc の最大幅に合わせる */
    margin: 0 auto; /* 水平方向に中央揃え */
	}


.lineup-slick_pc {
	    position: relative; /* 親要素に対して相対位置を指定 */
  width: 100%;
  max-width:1100px;
  margin: 30px auto;
}

@media screen and (max-width: 1200px) {
  .lineup-slick_pc {
    margin: 5% auto;
  }
}


.lineup-slick__item_pc img {
    height: auto;
    width: 100%;
	padding: 20px 5px;
}

.lineup__item_pc.slick-center img {
    transform: scale(1);
}	


 /* 矢印ボタンのスタイル */
  .slick-prev_pc,
  .slick-next_pc {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000; /* slickスライダーの上に表示 */
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
	z-index: 1001; /* ボタンを他の要素よりも上に表示 */
  }
  .slick-prev_pc {
    left: -30px;
  }
  .slick-next_pc {
    right: -30px;
  }	
	
.slick-prev_pc:before,
.slick-next_pc:before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
    border-width: 25px 25px 25px 0;
    border-color: transparent #000000 transparent transparent;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.slick-prev_pc:before {
  left: 0;
}

.slick-next_pc:before {
  right: 0;
	  transform: translateY(-50%) rotate(180deg); /* 右向きにするための回転 */

}



 /*AMG用サブコンテンツラインアップ・逆順に並び替え */

.amg_series_area .cms_img.col4.cms_block_middle {
    flex-flow: wrap-reverse row-reverse;
}

@media only screen and (min-width: 768px) {
    .amg_series_area .dynamic_area .cms_img.col4 .item:not(:nth-child(4n+1)) {
        margin-left:0!important;
    }
	
}

.amg_series_area .item {
    padding-right: 5px;
}

 /* AMG用CSS終わり */

/*ポップアップ用*/

.popup-wrapper {
  position: fixed;
  top: -100%; /* 画面の上に隠す */
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 9999;
  transition: top 0.8s ease;
}

.popup-wrapper.active {
  top: 0; /* スライドダウン表示 */
}

.popup-wrapper img {
  max-width: 90%;
  height: auto;
  cursor: pointer;
}

.popup-wrapper .close-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 35px;
  height: 35px;
  background-color: rgba(255,255,255,0.70);
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  letter-spacing: normal;
}
/* PC（1024px以上）の場合のスタイル */
@media (min-width: 1024px) {
  .popup-wrapper {
    width: 600px; /* または任意の幅を指定 */
    left: 50%;
    transform: translateX(-50%);
  }

  .popup-wrapper img {
    width: 100%;
    max-width: 100%;
  }
}
