@charset "UTF-8";
/* CSS Document */

.pc_none{
    display: block !important;
}
.tbl_none{
    display: none !important;
}
.sp_none{
    display: none !important;
}

.check {
    display: inline-block;
    border-bottom: 1px solid #fff;
}

.item-text {
    color: #fff;
    font-size: 15px;
    width: 100%;
    height: 100%;
}

.hover-card-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 18px;
}

.hover-card {
    position: relative;
    width: 322px;
    overflow: hidden;
    cursor: pointer;
    background-color: white;
    transition: all 0.4s ease;
}

.hover-card-img {
    width: 100%;
    display: block;
}

.hover-card-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    z-index: 2; /* 背景より上に */
    text-align: center;
    box-sizing: border-box;
  }

.hover-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.3 ease;
    z-index: 1;
}

.hover-card:hover .hover-card-overlay,
.hover-card:hover .hover-card-text {
  opacity: 1;
}

/*.hover-card:hover {
    transform: scale(1.05);
}
*/

/* PC向けホバー */
.hover-card:hover .hover-card-text {
    opacity: 1;
}



/* レイアウト */

.l-contents{
    list-style:none;
}

.item-text{
	transition: all 0.3s ease 0s;
	display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.l-contents img{
	transition: all 0.3s ease 0s;
}

.l-contents h2{
	width: 1000px;
	margin: 0px auto ;
	text-align: left;
}

.l-gallery-block-wrapper {
    margin-bottom: 64px;
    font-family:Avenir , "Open Sans" , "Helvetica Neue" , Helvetica , Arial , Verdana , Roboto , "游ゴシック" , "Yu Gothic" , "游ゴシック体" , "YuGothic" , "ヒラギノ角ゴ Pro W3" , "Hiragino Kaku Gothic Pro" , "Meiryo UI" , "メイリオ" , Meiryo , "ＭＳ Ｐゴシック" , "MS PGothic" , sans-serif;

}
.l-style-whole {
    font-size: 0px;
}

.l-style-whole img {
    width: 100%;
    max-width: 500px;
}

.main-contents {
    width: 1000px;
    margin: 0 auto;
}

.ttl_box1 {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 24px;
}

.title-sub {
    padding: 40px 20px;
    text-align: justify;
	color: #000;
    font-size: 14px;
    line-height: 1.6;
    font-family:Avenir , "Open Sans" , "Helvetica Neue" , Helvetica , Arial , Verdana , Roboto , "游ゴシック" , "Yu Gothic" , "游ゴシック体" , "YuGothic" , "ヒラギノ角ゴ Pro W3" , "Hiragino Kaku Gothic Pro" , "Meiryo UI" , "メイリオ" , Meiryo , "ＭＳ Ｐゴシック" , "MS PGothic" , sans-serif;
}

.main_box{
	display: block;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 100%;
}
.main_box img{
	display: block;
    margin: 0 auto 0;
    overflow: hidden;
    position: relative;
}

.m-zoomintxt {
    position: relative;
}
.m-zoomintxt .m-zoomintxt-cap{
    font-size: 14px;
    border-bottom: 1px solid #fff;
    opacity:0;
	position: absolute;
	z-index:3;/*テキストを前面に出す*/
	top: 50%;
    left: 50%;
	transform: translate(-50%,-50%);
	color: #fff;/*テキストの色を変えたい場合はここを修正*/
    line-height: 1.5;/*行の高さを1.5にする*/
}

.l-dgallery-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.under-link-box {
    overflow: hidden;
}

.under-link {
    margin: 50px auto 100px;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.under-link li {
    display: inline-block;
    margin: 8px 0px;
    text-align: center;
    width: 280px;
}

.under-link li a {
    font-weight: bold;
    background: #45423f;
    border-radius: 4px;
    color: #fff;
    display: block;
    padding: 14px 0;
}

.under-link li a.m-btn-inactive {
    background: #fff;
    border-radius: 4px;
    box-sizing: border-box;
    color: #333;
    height: auto;
    line-height: inherit;
}


@media screen and (min-width: 641px) {

.title-sub {
    margin-top: 0;
		color: #000;
}

.title-sub {
    text-align: center;
}

.l-gallery-block {
    display: flex;
}

.l-style-whole {
    width: 322px;
    margin-bottom: 1rem;
}

.l-gallery-block.l-reverse {
    flex-direction: row-reverse;
}

.m-zoomintxt-mask {
	position: relative;
	display: block;/*画像をくくるspanタグをブロック要素にする*/
    line-height: 0;/*行の高さを0にする*/
    overflow:hidden;/*拡大してはみ出る要素を隠す*/
}

.m-zoomintxt-mask::before {
	content:"";
	position: absolute;
	z-index:2;
	top:0px;
	left:0px;
	width: 100%;
    height: 100%;
	background:rgba(0,0,0,0.28);/*背景色*/
	opacity:0;
    transition: all 0.2s linear;/*移り変わる速さを変更したい場合はこの数値を変更*/
}

.m-zoomintxt:hover .m-zoomintxt-mask::before{
	opacity:1;
}
.m-zoomintxt img {
	transform: scale(1);
	filter: blur(0);
	transition: .3s ease-in-out;/*移り変わる速さを変更したい場合はこの数値を変更*/
}

/*
.m-zoomintxt:hover img{/*hoverした時の変化
	transform: scale(1.05);/*拡大の値を変更したい場合はこの数値を変更
}
*/

.m-zoomintxt:hover .m-zoomintxt-cap {/*hoverした時の変化*/
	opacity:1;
}

}


@media screen and (max-width: 640px) {
/* 表示領域が640px未満の場合に適用するスタイル */
    .pc_none{
    display: none !important;
}
    .tbl_none{
    display: block !important;
}
    .sp_none{
    display: block !important;
}
.main_box{
    height: 400px;
}

.main_box img{
    width: 100%;
}

.l-contents h2{
    text-align: left;
    margin: 0 auto;
    width: 100%;
}
.l-contents h2 img{
    width: 100%;
}

.main_box{
    height: auto;
    margin: 0;
}
.main_box img{
    margin: 0;
}

.l-style-whole {
    width: 48%;
    margin-bottom: 1rem;
}

.ttl_box1 img {
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 15;
}

.main-contents {
    width: auto;
    margin: 0 auto;
}

.item-text {
    font-size: 13px;
    width: 160px;
    height: 0%;
}

.hover-card:active .hover-card-text {
    opacity: 1;
}

.hover-card-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
}

.hover-card {
    width: 100%;
    height: auto;  /* 高さを自動で調整 */
}

.hover-card-image img {
    width: 100%;
    height: auto;
}

.hover-card-text {
    font-size: 14px;  /* スマホ向けにフォントサイズを調整 */
}

}
