:root {
    --background-clor: rgba(255, 253, 240, 1);
    --primary-color: rgba(0, 136, 3, 1);
    --secondary-color: rgba(246, 109, 50, 1);
    --body-backgroung-color: rgba(229, 250, 255, 1);
    --text-color-caution: rgba(239, 44, 44, 1);
    --text-color-gray: rgba(119, 119, 119, 1);
    --primary-container: rgba(242, 252, 242, 1);
    --secondary-container: rgba(255, 239, 225, 1);
    --gray-container: rgba(244, 244, 244, 1);
}

body {
    background: white;
}

.container {
    display: flex;
    height: 100%;
    /* ビューポートの高さ */
}
.zen-maru-gothic-regular {
    font-family: "Zen Maru Gothic", serif;
    font-weight: bold;
    font-style: normal;
}

.noto-sans-jp {
    font-family: "Noto Sans JP", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.material-icons{
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
  padding: 16px;
}

.left,
.right {
    width: calc((100% - 480px) / 2);
    background-color: var(--body-backgroung-color);
    padding: 0 20px;
    position: fixed;
    top: 0;
    height: 100%;
    display:flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/** 左側 */
.left {
    left: 0;
    /* 左側に固定 */
    /*background-image: url('../../images/lp/202505_dlcampaign/illust_left_background.png');*/
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    flex-direction: column;
    align-items: center;
}

.right {
    right: 0;
}

.side-illust{
    position: fixed;
    display: block;
    bottom: 0;
    z-index: -1;
}

.menu-logo{
    width: 280px;
}

.navigation {
    background: white;
    border: 3px solid rgba(213, 213, 213, 1);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;  /* 子要素を縦に並べる */
    align-items: center;     /* 子要素を横方向に中央揃え */
    justify-content: center; /* 子要素を縦方向に中央揃え */
    text-align: center;      /* テキストの中央揃え（オプション） */
    gap: 16px;
    max-width: 300px;
    min-height: 500px;
    position: absolute;
    top: 120px;
}

span{
    display: inline-block;
}

.dl-text-right{
    font-family: "Zen Maru Gothic", serif;
    font-size: 18px;
    color:#ffffff;
    font-weight: 500;
}

.center {
    position: relative;
    flex-grow: 1;
    height: 100%;
    max-width: 480px;
    background-color: #ffffff;
    z-index: 2;
}

.top-area{
    background-color: var(--background-clor);
    position: relative;
}

.top-image-area {
    color: var(--colors-gray-gray-d5);
    position: relative;
}

.top-image {
    width: 100%; /* 画像が親要素に合わせてサイズ調整されます */
    height: auto;
}

.image-area {
    position: relative;
}

.image-area .image {
    width: 100%; /* 画像が親要素に合わせてサイズ調整されます */
    height: auto;
}

.qr-code{
    width: 60%;
    margin: auto;
    padding: 16px 16px;
    border: 3px solid rgba(213, 213, 213, 1);
    border-radius: 8px;
}

.dl-area-right {
    background: white;
    border: 3px solid rgba(213, 213, 213, 1);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;  /* 子要素を縦に並べる */
    align-items: center;     /* 子要素を横方向に中央揃え */
    justify-content: center; /* 子要素を縦方向に中央揃え */
    text-align: center;      /* テキストの中央揃え（オプション） */
    max-width: 300px;
    min-height: 500px;
    position: absolute;
    top: 120px;
}

.dl-area-right img{
    margin-top: 16px;
}

footer {
  display: flex; /* 初期状態では非表示 */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: left;
  align-items: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px); /* 初期位置を下にずらす */
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 100;
}

footer.visible {
  opacity: 1;
  transform: translateY(0); /* 元の位置に戻す */
}

#close-footer {
  margin-bottom: auto;
  overflow: hidden;
  width: 0.5rem;
  height: 0.5rem;
  text-indent: 100%;
  white-space: nowrap;
  cursor: pointer;
}

#close-footer:before {
  content: "";
  display: block;
  position: absolute;
  top: 1.5rem;
  right: 0.5rem;
  width: 1rem;
  height: 2px;
  background-color: #757575;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#close-footer:after {
  content: "";
  display: block;
  position: absolute;
  top: 1.5rem;
  right: 0.5rem;
  width: 1rem;
  height: 2px;
  background-color: #757575;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

@keyframes move-left {
    0% {
        left: -300px; /* 画面左外からスタート */
    }
    45% {
        left: 100%; /* 画面右外に移動 */
    }
    100% {
        left: 100%; /* 画面右外に移動 */
    }
}

@keyframes move-right {
    0% {
        left: -300px;
    }
    50% {
        left: -300px; /* 画面左外からスタート */
    }
    95% {
        left: 100%; /* 画面右外に移動 */
    }
    100% {
        left: 100%; /* 画面右外に移動 */
    }
}

@media (min-width: 481px) {
    footer{
        display: none;
        /* PC版では非表示 */
    }

    .dl_button {
        display: none;
    }

    #footer-image{
        display: none;
    }

    .center {
        margin: 0 calc((100% - 480px) / 2);
    }

}

@media (max-width: 480px) {

    .left,
    .right {
        display: none;
        /* スマートフォンでは左右を隠す */
    }

    .top-area {
        position: relative;
        overflow: hidden;
    }

    .center {
        width: 100%;
        /* 中央部分を100%に */
    }

}


/** QRが見えにくくなるのでブレイクポイント */
@media (max-width: 840px) {
  .left, .right {
    display: none; /* スマートフォンでは左右を隠す */
  }

  .center {
    width: 100%; /* 中央部分を100%に */
    max-width: 840px;
    margin: 0;
  }

}

/** ストアアイコンが見えにくくなるのでブレイクポイント */
@media (max-width: 1200px) {
  .flex-store{
    flex-flow: column;
    align-items: center;
  }

}

#about,#caution
{
    padding: 20px;
}

#about h2,
#caution h2{
    background: var(--secondary-container);
    font-size: 16px;
    border-radius: 8px;
    padding: 16px;
}

.about-text-area{
    padding: 16px;
    gap: 16px;
}

.about-text-area p{
    margin-top: 16px;
    font-size: 14px;
}

.about-text-area .caution{
    color: var(--text-color-caution);
}

#app{
    border-radius: 16px;
    background: var(--primary-container);
    margin: 20px;
    padding: 30px 20px;
}

#app .app-image-area{
    margin-bottom: 16px;
}

#app .about-text-area{
    color: var(--text-color-gray);
}

#link{
    border-radius: 16px;
    background: var(--gray-container);
    margin: 40px 20px 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

#link h2{
    width: 150px;
    gap: 5px;
    padding: 15px 25px;
    border-radius: 26px;
    font-size: 20px;
    background: white;
    text-align: center;
    margin: 0 auto;
    font-weight: 700;
    color: var(--text-color-gray);
}

#link .link-image{
    margin: 16px 20px 0;
}