@charset "utf-8";

.greeting{
  margin:120px auto 0;
  width:80%;
  max-width:1345px;
  display:flex;
  justify-content:space-between;
  align-items: flex-start;
}

.greeting > img{
  width:45%;
}

.greeting-txt{
  width:50%;
}

.greeting-txt > p{
  font-size:14px;
  line-height:2.5;
}

.greeting-name{
  margin-bottom:2rem;
  font-size:clamp(0.875rem, 0.739rem + 0.45vw, 1.25rem);
}

.greeting-name h2{
  font-size:clamp(1.5rem, 1.136rem + 1.21vw, 2.5rem);
  margin-top: 1rem;
}

.career{
  margin:5rem 0;
}

.career p:first-child{
  font-size:20px;
  margin-bottom:1rem;
}

.career p:last-child{
  font-size:14px;
  line-height:2;
}

.greeting-btn{
  display:flex;
  align-items:center;
  gap:2rem;
  margin-top:2.5rem;
}

.youtube{
  width:3rem;
}

.greeting-btn .btn{
  margin:0;
}

.history .pin-wrap{
  padding:200px 0 120px 15%;
}

.history .border-title{
  margin: 0 0 5rem;
}

/* セクション本体：高さはJSで付与するので overflowはvisibleが無難 */
.history.horizontal-scroll {
  position: relative;
  width: 100%;
  overflow: visible; /* ← overflow:hidden が親にあると sticky が効かないブラウザがある */
}

/* タイトルは任意。固定したければ sticky にしてOK */
.history.horizontal-scroll .border-title {
  position: relative;
  z-index: 10;
  font-size: 2rem;
  margin: 20px;
}

/* ここを画面に貼り付ける */
.history.horizontal-scroll .pin-wrap {
  position: sticky;
  top: 0;
  overflow: hidden;
}

/* 横に並べるコンテナ */
.history.horizontal-scroll .history-wrap.scroller {
  display: flex;
  padding: 40px 24px; /* 上下左右の余白。高さ auto のカード用 */
  will-change: transform;
}

/* カード：高さはautoのまま */
.history.horizontal-scroll .history-item {
  flex: 0 0 400px; 
  box-sizing: border-box;
  font-size:14px;
  padding-right:5%;
}

.history.horizontal-scroll .history-item p{
  max-width:280px;
}

.history.horizontal-scroll .history-item .date{
  background:#fff;
  border-radius:1.5rem;
  padding:6px 1rem;
  width:fit-content;
}

.history.horizontal-scroll .history-item h3{
  font-size:1.5rem;
  margin:1rem 0 0.5rem;
}

/* プログレスバーの外枠 */
.history.horizontal-scroll .progress-bar-wrap {
  position: sticky;
  top: 0; 
  left: 0;
  width: 80%;
  height: 1px;
  background: #C4C4C4;
  z-index: 20;
  overflow: hidden;
}

/* プログレスバー本体 */
.history.horizontal-scroll .progress-bar {
  height: 100%;
  width: 0%; /* JSで伸ばす */
  background: #3B3B3B; /* お好みの色 */
  transition: width 0.1s linear;
}

.history-item div{
  margin-bottom:1rem;
}

.member .border-title{
  margin: 0 0 5rem;
}

.member .container{
  max-width:1345px;
}

.member-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:5rem 5%;
}

.member-item{
  width:30%;
}

.member-item img{
  aspect-ratio:4/3;
  object-fit:cover;
  margin-bottom:1rem;
}

.member-item .label{
  color:#A38370;
  font-size:14px;
}

.member-item h3{
  font-size:clamp(1.25rem, 1.159rem + 0.3vw, 1.5rem);
  margin-bottom:1.5rem;
}

.member-item h3 + p{
  font-size:14px;
}

.member-license{
  margin:1.5rem 0 2.5rem;
  background:#D0C3B9;
  border-radius:10px;
  padding:1rem;
}

.member-license p:first-child{
  font-size:14px;
}

.member-license p:last-child{
  font-size:12px;
}

.member-item .btn{
  margin:1.5rem 0 0;
}

.banner{
  margin-bottom:10rem;
  border-radius:10px;
  box-shadow:2px 2px 8px rgba(0,0,0,0.16);
  overflow:hidden;
  display: flex;
}

.banner-txt{
  width:55%;
  position: relative;
}

.banner-top{
  position:relative;
  background:url(https://ebisukoumuten.co.jp/system_panel/uploads/images/20250926181947566881.png) no-repeat center/cover;
  height:100%;
}

.banner-top > img{
  position: absolute;
  width: 15%;
  left: 2.5%;
  top:2.5%;
}

.banner-top-txt{
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  width:90%;
  text-align:center;
  font-size:clamp(1rem, 0.909rem + 0.3vw, 1.25rem);
}

.banner-top-txt h2{
  font-size:clamp(2rem, 1.818rem + 0.61vw, 2.5rem);
  margin-top: 3%;
}

.banner-top-txt h2 em{
  font-size:clamp(1.75rem, 1.614rem + 0.45vw, 2.125rem);
}

.banner-top-txt h2 strong{
  font-weight:bold;
}

.banner-top-txt img{
  width:70px;
  margin:0 auto 8px;
}

.banner-bottom{
  position: absolute;
  bottom:0;
  left:0;
  width:100%;
  z-index:5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap:1rem;
  font-size:clamp(1rem, 0.909rem + 0.3vw, 1.25rem);
  padding:1rem;
  background:#EAE3DD;
  text-align: right;
}

.banner-bottom strong{
  font-size:clamp(1.125rem, 0.989rem + 0.45vw, 1.5rem);
  font-weight:bold;
}

.banner-bottom img{
  width:20px;
}

.banner > img{
  width:45%;
}

.company{
  margin:120px auto 140px;
  width:80%;
  max-width:1345px;
}


.company .border-title{
  margin: 0 0 5rem;
}

.company-wrap{
  display:flex;
  justify-content:space-between;
}

.company-item{
  width:47.5%;
}

.company-list{
  padding-bottom:1rem;
  margin-bottom:1rem;
  border-bottom:0.5px solid #3B3B3B;
}


.company-list p:first-child{
  color:#A38370;
  margin-bottom:0.5rem;
}

.company iframe{
  width:100%;
  height:500px;
  margin:2.5rem 0;
  border:none;
}

@media screen and (max-width: 1600px) {
  .banner-top-txt{
    top:40%;
  }
}

@media screen and (max-width: 1279px) {
  .banner{
    flex-direction:column;
    max-width:600px;
    margin:0 auto 5rem;
  }
  .banner-txt{
    width:100%;
    aspect-ratio: 570 / 340;
  }
  .banner > img{
    width:100%;
  }
}

@media screen and (max-width: 1024px) {
  .greeting{
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .greeting > img {
    width: 100%;
    max-width: 450px;
  }
  .greeting-txt {
    width: 100%;
  }
  .member-item {
    width: 47.5%;
  }
}

@media screen and (max-width: 767px) {
  .company-wrap{
    flex-direction: column;
    gap: 0rem;
    align-items: center;
  }
  .company-item {
    width: 100%;
  }
  .member-item {
    width: 100%;
  }
  .greeting {
    margin: 80px auto 0px;
    width: 90%;
  }
  .history .pin-wrap {
    padding: 120px 0 80px 5%;
  }
  .greeting-name {
    margin-bottom: 1.5rem;
  }
  .career {
    margin: 2rem 0;
  }
  .greeting-btn{
    justify-content: end;
  }
  .history.horizontal-scroll .progress-bar-wrap{
    width: 95%;
  }
  .pink {
    padding: 40px 0 80px;
  }
  .member .border-title {
    margin: 0 auto 2.5rem;
    text-align: center;
  }
  .member-license {
    margin: 0.5rem 0 1.5rem;
  }
  .member-item .btn {
    margin: 0 0 0 auto;
  }
  .company {
    margin: 80px auto;
    width: 90%;
  }
  .company .border-title {
    margin: 0 0 2.5rem;
  }
  .history.horizontal-scroll .history-item {
    padding-right: 0%;
  }
  .banner-bottom{
    padding: 1rem 0.5rem;
    text-align: left;
  }
  .banner-top-txt img {
    width: 40px;
    margin: 0 auto 4px;
  }
  .banner-txt {
    aspect-ratio: 570 / 580;
  }
  .banner-top > img{
    width: 20%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
  }
  .banner-top-txt h2{
    margin:0;
  }
  .banner-top-txt {
    top: 47.5%;
  }
}