@charset "utf-8";
html {
  scroll-behavior: smooth;
  /* 固定ヘッダーの高さ分（例：80px）だけスクロール位置をずらす */
  scroll-padding-top: 80px; 
}

.wms_container{
	margin: 0 -15px;
}

.case-container{
	width: 100%;
	overflow: hidden;
	clear: both;
	padding: 0 0.5em 0 1eme;
}

.subtit_mame.overseas_case{
	margin-left: 0 !important;
	padding-left: 0 !important;
	margin-top: 0 !important;
}

.subtit_mame.overseas_case span{
	font-size: 70% !important;
	display: block !important;
	line-height: 165% !important;
	margin: 1em 0 0 0 !important;
}

/*.wms-case-menu{
	width: 100%;
	clear: both;
	overflow: hidden;
     display:grid;
     grid-template-rows:1fr 1fr;
     grid-template-columns:1fr 1fr;
	gap:8px;
	margin: 2em auto 2em auto;
}*/

.wms-case-menu{
width: 100%;
clear: both;
overflow: hidden;
 display:flex;
justify-content: space-between;
margin: 2em auto 2em auto;
}

.wms-case-menu a{
	display: block;
	background-color: rgba(18,157,30,0.6);
	color: #fff;
	border-radius: 4px;
	padding: 1.0em 1em;
	font-size: 1.08rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	width: 28.7% !important;
}

.wms-case-menu a:hover{
	background-color: rgba(18,157,30,0.25);
	/*color:  rgba(0,143,75,1.0);*/
	color: rgba(0,0,0,0.66) !important;
	text-decoration: none;
	transition: 0.3s !important;
	color: rgba(18,157,30,1.0);
}



.wms-case-menu a::before{
	content: "▶";
	margin-right: 0.5em;
}



.export_h3.wms_title{
	margin-left: 0 !important;
	margin-bottom: 0.8em !important;
	margin-top: 2.5em !important;
}

.title-box {
  position: relative;
  width: 100%;
  border-bottom: 5px solid #ddd; /* 下線のグレー部分（親幅いっぱい） */
  margin-bottom: 0px;
}

.title-box h4 {
  display: inline-block;
  position: relative;
  font-weight: bold;
  color: #333;
  margin: 0;
  padding-bottom: 4px; /* グレー線との距離 */
	padding: 0.5em 0;
}

.title-box h4::before {
content: "▼";
color: #76c582;
padding: 0 0.66em 0 0.44em;
}

/* 緑色の文字下ライン（文字分だけ） */
.title-box h4::after {
  content: "";
  position: absolute;
  bottom: -5px; /* グレー線に重ねる */
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #76c582; /* 緑 */
	padding-right: 0.8em;
}

.detail-box{
	border-left: 1px solid #ddd;
	overflow: hidden;
	width: 100%;
}

.detail-box div{
	width: 96.0%;
	display: block;
	border-bottom: 1px solid #ddd;
	padding: 2em 0;
	overflow: hidden;
	padding-bottom: 0 !important;
	float: right;
	clear: both;
}

.case-container .detail-box:last-of-type > div {
  border-bottom: 0 !important;
}

.case-container .detail-box:last-of-type {
	margin-bottom: 5.5em;
}


/*写真部分----------------------------------------------------------*/
.detail-box div a {
  display: block;
  float: right;
 /* width: 25%;*/
 width: 38%;
  margin: 0 0.5em 2em 2em;
  overflow: hidden;
  text-decoration: none !important;
}

.detail-box div a:hover {
  text-decoration: none !important;
}

.detail-box img {
  width: calc(100% - 2px);
  aspect-ratio: 4 / 3;  /* ←ここで比率固定 */
  object-fit: cover;     /* 枠いっぱいにトリミング */
  display: block;
  margin: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.detail-box div a span {
  font-size: 0.8rem;
  line-height: 165%;
  text-align: center;
  display: block;
  margin: 0 !important;
  padding: 0.88em 1em 0 1em !important;
  color: #333 !important;
}


.detail-box h5{
background-color: rgba(18,157,30,0.29);
	font-size: 0.9rem;
	font-weight: 400;
	padding: 0.7em 1em;
	display: inline-block;
	margin-bottom: 1.5em;
	line-height: 100% !important;
	border-radius: 3px;
}
.detail-box p{
	line-height: 180%;
	font-size: 0.95rem;
	margin: 0 0 1em 0 !important;
	padding: 0 !important;
}

@media screen and (max-width: 800px) {
	
/*写真部分----------------------------------------------------------*/
.detail-box div a {
float: none;
clear: both;
width: 100% !important;
margin: 0 0 2em 0 !important !important;
}
	
.detail-box img {
  width: calc(100% - 12px) !important;
  aspect-ratio: 4 / 3;  /* ←ここで比率固定 */
  object-fit: cover;     /* 枠いっぱいにトリミング */
  display: block;
  margin: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
}
	
.wms_container{
	margin: 0;
}
	
.case-container{
	padding: 0 1em;
}
.wms-case-menu{
     grid-template-rows:1fr 1fr 1fr 1fr;
     grid-template-columns:1fr;
	gap:8px;
}
	
.case-container{
	padding: 0;
}
	
/*ヘッダーメニュー----------------------------------------------------------*/
.wms-case-menu{
 display:flex;
flex-direction: column;
}

.wms-case-menu a{
	width: calc(100% - 2em) !important;
}
	
/*写真部分----------------------------------------------------------*/
.detail-box div a {
  width: 35%;
  margin: 0 0.5em 0.5em 0.5em;
}
	
.detail-box div a span {
  font-size: 0.7rem;
  line-height: 145%;
  padding: 0.5em 0em 0 0em !important;
}
	
  .lightbox .lb-outerContainer {
    margin-top: 60px !important; /* ←数値を調整して下げたい分だけ変更 */
  }
	
	
}/*←削除注意　消さないこと*/
