/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.layout {
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Sidebar (PC版のみ表示) */
.sidebar {
  display: none;
}

/* 購入ボタン（SP版） */
.purchase-button-sp {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
}

.purchase-button-sp img {
  width: 150px;
  height: auto;
}

/* 購入ボタン（中間サイズ用） */
.purchase {
  display: none; /* デフォルトは非表示 */
}

/* Main Content (スクロール可能) */
.main-content {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* IE, Edge 対応 */
  -ms-overflow-style: none;
  /* Firefox 対応 */
  scrollbar-width: none;
}

/* Chrome, Safari 対応 */
.main-content::-webkit-scrollbar {
  display:none;
}

/* Section */
.section {
  position: relative;
  width: 100%;
}

.section__background {
  width: 100%;
}

.section__background img {
  width: 100%;
  display: block;
}

.section__content {
  width: 100%;
}

.section__content img {
  width: 100%;
  display: block;
}

/* Footer */
.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__logo img {
  height: auto;
}

/* PC用レイアウト - 3カラム構成 */
@media screen and (min-width: 769px) and (max-width: 1030px) {
  /* 中間サイズでロゴを非表示 */
  .sidebar__middle img{
    display: none;
  }
}

@media screen and (min-width: 769px) {
  /* SP版購入ボタンを非表示 */
  .purchase-button-sp {
    display: none;
  }


  /* 中間サイズ用の購入ボタン（769px~1030px） */
  .purchase {
    position: sticky;
    width: calc(100% - 10px);
    display: flex;
    justify-content: end;
    bottom: 10px;
  }

  .purchase img {
    width: 150px;
  }

  /* 背景画像を設定 */
  .layout {
    flex-direction: row;
    background-color: #F4FDFF;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100%;
    width: 100%;
  }

  .section {
    width: 428px;
  }

  .header {
    width: 428px;
  }

  /* 左右サイドバー共通スタイル */
  .sidebar--left,
  .sidebar--right {
    display: flex;
    flex-direction: column;
    width: calc((100vw - 428px) / 2);
    height: 100vh;
    position: relative;
  }

  /* 左サイドバー */
  .sidebar--left {
    justify-content: space-between;
  }

  .sidebar--left .sidebar__top {
    align-self: flex-start;
    padding: 30px;
  }

  .sidebar--left .sidebar__top img {
    height: 316px;
    object-fit: contain;
  }

  .sidebar--left .sidebar__middle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
  }

  .sidebar--left .sidebar__middle img {
    width: 490px;
    object-fit: contain;
  }

  .sidebar--left .sidebar__bottom {
    display: flex;
    justify-content: center;
    height: 292px;
  }

  /* 中央コンテンツを428pxに固定 */
  .main-content {
    min-width: 428px;
    max-width: 428px;
    background-color: #E8F6F9;
  }

  /* 右サイドバー */
  .sidebar--right {
    display: flex;
    justify-self: flex-end;
  }

  .sidebar--right .sidebar__purchase {
    position: relative;
    visibility: hidden;
    margin-left: 100px;
  }

  .sidebar--right .sidebar__purchase img {
    margin-bottom: 60px;
    min-width: 150px;
  }

  .sidebar--right .sidebar__purchase-main {
    object-fit: contain;
    display: block;
    position: relative;
    max-width: 325px;
  }

  .sidebar--right .sidebar__footprints {
    margin-top: auto;
    display: flex;
    justify-content: end;
    margin-left: 100px;
  }

  .sidebar--right .sidebar__footprints img {
    max-height: 430px;
    object-fit: contain;
    position: relative;
    right: 60px;
    top: 116px;
  }
}

/* PC用レイアウト - 1030px以上 */
@media screen and (min-width: 1290px) {
  /* main-content内の購入ボタンを非表示 */
  .purchase {
    display: none;
  }

  /* サイドバーの購入ボタンを表示 */
  .sidebar--right .sidebar__purchase {
    visibility: visible;
  }
}