.flexbox{
  width: 100%;
/* 900px
*/
  		height: 1200px;
 		position: relative;
  		text-align: center;
  		align-items: center;
  		display: flex;
  		justify-content: center;
  	}
  	.Menu-pic{
  		text-align:center;
  	}
/*ポップアップここから*/

.popup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: .6s;
}
.popup.is-show {
  opacity: 1;
  visibility: visible;
}
.popup-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 80%;
  max-width: 600px;
  background-color: #fff;
  z-index: 2;
  border-radius: 3px;
}
.popup-inner img {
  width: 100%;
  border-radius: 3px 3px 0 0;
}
div#modalCloseCloss:hover {
    opacity: 0.7;
}
.modalCloseButton {
    position: absolute;
    left: 92%;
    top: -48px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
}
.lineClose {
    display: inline-block;
    vertical-align: middle;
    color: #FFF;
    line-height: 1;
    width: 2rem;
    height: 0.2rem;
    background: currentColor;
    border-radius: 0.1rem;
    position: relative;
    transform: rotate(45deg);
}
.lineClose::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: rotate(90deg);
}
.black-background {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.6);
  z-index: 1;
  cursor: pointer;
}
.modalBottom {
    padding: 22px 30px;
}
.modalBottom p {
    margin: 0;
}
/* ==========================================
   1. スマホ：縦持ち (Portrait) の設定
   ========================================== */
@media screen and (orientation: portrait) {
    #ui-container {
        position: fixed;
        top: 20px;
        right: 5%;      /* 右側 5% 空ける */
        z-index: 9990;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .ui-icon {
        width: 70px;     /* 50pxの140% */
        height: 70px;
        cursor: pointer;
        pointer-events: auto;
    }
}

/* ==========================================
   2. スマホ：横持ち (Landscape) の設定
   ========================================== */
/* 画面が横向き、かつ幅がPC未満（950px以下）の場合 */
@media screen and (orientation: landscape) and (max-width: 950px) {
    #ui-container {
        position: fixed;
        top: 10px;       /* 縦幅が狭いので少し詰める */
        right: 5%;       /* 横幅を広く使うため少し端に寄せる（お好みで調整） */
        z-index: 9990;
        display: flex;
        flex-direction: column; /* 横に並べたい場合は row に変更 */
        gap: 10px;
    }
    .ui-icon {
        width: 65px;     /* 横持ちは画面が狭いので少し小さめに設定 */
        height: 65px;
        cursor: pointer;
        pointer-events: auto;
    }
}

/* ==========================================
   3. PC・タブレットなど：横幅が広い場合
   ========================================== */
@media screen and (min-width: 951px) {
    #ui-container {
        position: fixed;
        top: 30px;
        right: 8%;      /* 右側 8% 空ける */
        z-index: 9990;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .ui-icon {
        width: 120px;    /* 60pxの200% */
        height: 120px;
        cursor: pointer;
        pointer-events: auto;
    }
}