.solution-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 270px;
}

.solution-card {
  position: absolute;
  bottom: 0;
  transition: all 0.6s ease;
  border-radius: 20px;
  padding: 20px 30px;
  color: white;
  cursor: pointer;
  overflow: hidden;
}

/* 左 */
.position-left {
  left: 0%;
  width: 28%;
  height: 150px;
  z-index: 1;
}

/* 中央 */
.position-center {
  left: 30%;
  width: 28%;
  height: 150px;
  z-index: 2;
}

/* 右 */
.position-right {
  left: 60%;
  width: 40%;
  height: 250px;
  z-index: 3;
}

.position-right .card-title {
  font-size: 4rem;  /* 通常より大きめ */
  line-height: 1.3;
    font-weight:500;
}

.position-right .card-title .small {
  font-size: 2rem;
    font-weight:500;
}

.position-right .card-label {
  font-size: 1.2rem;
    font-weight:500;
}

/* 背景画像 */
.card1 { background-image: url("../img/creative_bk.jpg"); background-size:cover;}
.card2 { background-image: url("../img/dx_bk.jpg");background-size:cover; }
.card3 { background-image: url("../img/branding_bk.jpg");background-size:cover; }

/* タイトル */
.card-title {
  font-size: 2.4rem;
  line-height: 1.3;
  margin: 0 0 10px 0;
    font-weight:500;
}
.card-title .small {
  font-size: 1.6rem;
}

/* ラベル */
.card-label {
  display: inline-block;
  font-size: 1rem;
  padding: 1px 12px;
  border-radius: 999px;
  background-color: #fff;
  font-weight: 800;
  color: #fff;
}
.eng1 { color: #00CEFF; }
.eng2 { color: #5CE029; }
.eng3 { color: #EA514A; }

/* 矢印アイコン */
.arrow3 {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 6%;
}

.menu_flex{
  display:flex;
  justify-content: flex-start;
  padding:30px 0;
  gap:20px;
}

.menu_flex a{
  width:13%;
}

.menu_flex {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  padding: 0;
}

.menu_flex.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  height: auto;
  padding: 30px 0;
}

/* === 順番に出現するアニメーション === */
.menu_flex a {
  width: 13%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* active時に順番にフェードイン + スライドアップ */
.menu_flex.active a {
  opacity: 1;
  transform: translateY(0);
}

/* 表示順ディレイ */
.menu_flex.active a:nth-child(1) { transition-delay: 0.1s; }
.menu_flex.active a:nth-child(2) { transition-delay: 0.2s; }
.menu_flex.active a:nth-child(3) { transition-delay: 0.3s; }
.menu_flex.active a:nth-child(4) { transition-delay: 0.4s; }
.menu_flex.active a:nth-child(5) { transition-delay: 0.5s; }
.menu_flex.active a:nth-child(6) { transition-delay: 0.6s; }
.menu_flex.active a:nth-child(7) { transition-delay: 0.7s; }

.menu_flex a {
  width: 13%;
  position: relative;
  overflow: visible;
}

.menu_flex a img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.menu_flex a:hover img {
  transform: scale(1.1);
};


.solution-menu {
  overflow: visible;
}

.menu_flex {
  overflow: visible; 
  position: relative;
}

.solution-title{
  position: absolute;
  top:20px;
  border-bottom:1px solid #fff;
  width:100%;
  letter-spacing:0.2rem;
  padding-left:5px;
  padding-bottom:5px;
}

.solution-title2{
  position: absolute;
  top:80px;
  border-left:3px solid #fff;
  width:100%;
  letter-spacing:0.2rem;
  padding-left:10px;
}


/* ▼ SP対応（768px以下） */
@media (max-width: 768px) {

.solution-card {
    border-radius: 10px;
    padding: 30px 10px;
}

.card-title {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 0px 0;
    font-weight:500;
}
.card-title .small {
  font-size: 0.8rem;
}
.card-label{
  display: inline-block;
  font-size: 0.5rem;
  padding: 3px 5px;
  border-radius: 999px;
  background-color: #fff;
  font-weight: 400;
  line-height:1rem;
}

/* 左 */
.position-left {
  left: 0%;
  width: 28%;
  height: 100px;
  z-index: 1;
}

/* 中央 */
.position-center {
  left: 30%;
  width: 28%;
  height: 100px;
  z-index: 2;
}

/* 右 */
.position-right {
  left: 60%;
  width: 40%;
  height: 120px;
  z-index: 3;
}

.position-right .card-title {
  font-size: 1.6rem;  /* 通常より大きめ */
  line-height: 1.3;
    font-weight:500;
}

.position-right .card-title .small {
  font-size: 1rem;
    font-weight:500;
}

.position-right .card-label {
  font-size: 0.7rem;
    font-weight:500;
}

/* 矢印アイコン */
.arrow3 {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6%;
}

.solution-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 220px;
}
.menu_flex{
  display:flex;
  flex-wrap:wrap;
  justify-content: space-between;
  padding:0px 0;
  gap:10px;
}
.menu_flex a {
    width: 31%;
    position: relative;
    overflow: visible;
}

}