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

.company-info .company-info-image .image-item-long {
    width: 300px;
    height: auto;
    object-fit: contain;
}
.about_isamu_flow{
    background: #91b949;
    padding: 5px;
    color: #fff;
    text-align: center;
    border-radius: 20px;
    margin: 20px 0 20px;
    width: 12%;
    letter-spacing: 1px;
}

/* 3列から2列（画像）
------------------------------*/
.col_3{
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}
.col_3 > div{
    margin-bottom: 20px;
}

#fast_area{
    margin-left: 40px;
}

.col_2{
	width: 100%;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

/*======================================
    SP 
========================================*/

@media screen and (min-width: 920px) and (max-width: 1800px){
    #about_isamu .first_text{
        width: 60%;
    }
    
    .mr165 {
        margin-right: 6%!important;
    }
    #about_isamu #fast_area .mr50{
        margin-right: 2%!important;
    }
}


@media screen and (max-width: 1140px) {
    .mr50{margin-right: 20px;}    
}

@media screen and (max-width: 1024px) {
    #fast_area{
        margin-left: 0;
    }
}

@media screen and (max-width: 920px) {
    #about_isamu .first_area {
        flex-direction: inherit!important;
    }
}

@media screen and (max-width: 960px) {
    .col_3{
        flex-direction: inherit!important;
    }
	.col_3 > div{
		width: 50%;
	}
    
    .col_2{
		display: flex;
        flex-direction: column-reverse;
		width: 100%;
    }
	
    .col_2 .w-45{
		width: 100%;
    }
    .col_4 > div {
        width: 46.33333%;
    }
    
    .company-info .company-info-image .image-item-long,
    .company-info .company-info-image .image-item-short{
        width: 44%;
    }
    
   #about_isamu .company-info-image p,
   #about_isamu .company-info-image p {
       text-align: left;
       padding: 0 10px;
    }
}



@media screen and (max-width: 768px) {
    .about_isamu_flow{
        width: 50%;
    }
    
    #about_isamu .isamu{
        width: 40%!important;
        line-height: 1;
    }
    
    #about_isamu .isamu img{
        width: 60%;
        display: block;
    }
    
    #about_isamu #fast_area .phot01,#about_isamu #fast_area .phot02,#about_isamu #fast_area .phot03{
		width: 46%;
	}    
    #about_isamu #fast_area .phot01{
        margin-left: 50px;
    }
    #about_isamu #fast_area .phot02{
        margin-right: 20px!important;
    }
    

}

@media screen and (max-width: 480px) {
    /* 4列から
    ------------------------------*/

    
    /* 3列から2列（画像）
    ------------------------------*/
    .col_3{
        flex-direction: inherit;
    }
	.col_3 > div{
		width: 50%!important;
        padding: 5px;
        margin-bottom: 0;
	}
    .company-info .tc{
        text-align: left;
        line-height: 1.6;
    }
    .company-info img {
        padding: 5px!important;
    }
    #about_isamu #fast_area .phot01,#about_isamu #fast_area .phot02,#about_isamu #fast_area .phot03{
		width: 49%;
	}
    #about_isamu .isamu img{
        width: 70%!important;
        display: block;
    }
    
    #about_isamu #fast_area .phot01{
        margin-left: 30px;
    }
    #about_isamu #fast_area .phot02{
        margin-right: 0!important;
    }
}

/*251106追記*/

/* ===== タイムライン全体 ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px 40px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}


/* ===== 製品カード ===== */
.item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 16px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}


.item img {
  width: 130px;
  height: auto;
  margin-bottom: 10px;
}

.year {
  font-weight: 700;
}

.sub {
  font-size: 1rem;
  color: #777;
  margin-bottom: 6px;
}

.name {
  font-weight: 600;
  color: #222;
}

/* ===== 矢印（PC表示時） ===== */
.arrow {
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 20px;
  background: #a9cbb7;
  z-index: 0;
}

.arrow::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 0px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 8px solid #a9cbb7;
}

/* ===== スマホ対応 ===== */
@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .item {
    width: 80%;
    max-width: 240px;
    margin: 0 auto;
  }

  .item img {
    width: 80%;
    max-width: 160px;
  }

  /* 縦方向矢印に切り替え */
  .arrow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: #a9cbb7;
  }

  .arrow::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: -4px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #a9cbb7;
  }
}