@media screen and (max-width:480px) {
  * {
    float: none;
    position: static;
  }
  
  img {
    max-width: 100%;
    margin: auto;
  }
  
  html {
    max-width: 100vw;
    min-height: 100%;
    background-image: url("https://sakuramedaka.com/img/bg_black.jpg");
    background-repeat: repeat;
    background-size: cover;
    font-size: 16px;
    display: block;  /* flexを解除 */
  }
  
  body {
    width: 100vw;      /* 画面幅いっぱい */
    margin: 0;         /* マージンをリセット */
    padding-bottom: 140px; /* フッター固定用の余白 */
    overflow-x: hidden; /* 横スクロール防止 */
    box-sizing: border-box;
  }
  
  header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    color: aliceblue;
    bottom: 5px;
  }
  
  .shop_icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 20px;
  }
  
  .shop_icon_img img {
    border-radius: 0;
    border: 0;
    width: 60vw;
    object-fit: fill;
  }
  
  main {
    position: relative;
    margin: 20px auto;
    justify-content: center;
    align-items: center;
    color: aliceblue;
    max-width: 95vw; /* 最大幅を指定 */
  }
  
  .shop_container {
    width: 90%;
    max-width: 370px;
    margin: 10px auto; /* 150px → auto に修正 */
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 30px;
    color: #000;
  }
  
  .shop_container img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .link_content_list_container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .link_content_button {
    width: 90%;
    max-width: 370px;
    margin: 10px auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #BBBBBB;
    color: #000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 30px;
  }
  
  .link_content_button img {
    max-width: 100%;
    border-radius: 30px;
    transition: transform 0.3s ease;
    display: block;
  }
  
  @media (hover: hover) {
    .link_content_button:hover img {
      transform: scale(0.98);
    }
  }
  
  .shop_info {
    margin: 0 auto 1em;
    max-width: 95%;
    color: #fff;
    text-align: center;
  }
  
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ff99cc;
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
  }
  
  .footer_icon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .footer_icon a {
    margin: 0 2%;
    max-width: 18%;
    display: block;
  }
  
  .footer_icon a img {
    max-width: 3em;
    margin: 0 auto;
    display: block;
  }
  
  .copyright_container {
    color: #fff;
    font-size: 10px;
    margin-top: 10px;
  }
  
  img:hover {
    opacity: 0.8;
  }
}