@charset "UTF-8";

@import url('normalize.css');

body,
body * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  background-color: #ecedeb;
  font-family: "ヒラギノ角ゴ Pro W3", "メイリオ", Meiryo, Osaka, "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  scroll-behavior: smooth;
}

img {
  border: none;
}

a {
  text-decoration: underline;
  transition: color 0.5s;
}

/*******************************
背景
*******************************/

#bg_scroll_l {
  position: fixed;
  left: -20px;
  bottom: -10px;
  z-index: -1;
  opacity: 0.7;
}

#bg_scroll_r {
  position: fixed;
  right: -20px;
  bottom: -10px;
  z-index: -1;
  opacity: 0.7;
}

#bg_characters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800vh;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}

#bg_characters img {
  position: absolute;
  top: 0;
  max-width: 50vw;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
}

#bg_characters .bgchara-left {
  left: 0;
  object-position: left top;
}

#bg_characters .bgchara-right {
  right: 0;
  object-position: right top;
}

/*******************************
ヘッダー
*******************************/

#top_header {
  position: relative;
  width: 100%;
  text-align: center;
  padding-top: 0;
  margin-bottom: 40px;
}

#top_header_image {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1120px) {
  #top_header_image {
    width: 1120px;
    height: auto;
  }
}

.order-button {
  margin: 0 auto;
  text-align: center;
}

.order-button a:hover {
  filter: brightness(1.2);
}

.order-button img {
  max-width: 100%;
  height: auto;
}

#top_header .order-button {
  display: block;
  width: 90vw;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
}

/*******************************
本文
*******************************/

h2 img {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  object-fit: cover;
  object-position: center;
}

section {
  position: relative;
  width: 80vw;
  max-width: 1120px;
  margin: 0 auto 40px;
  padding: 40px;
  border: 0;
  background-color: rgba(255, 235, 245, 0.65);
  box-shadow: rgba(255, 235, 245, 0.65) 0 0 15px 5px;
  border-radius: 10px;
  text-align: left;
}

.container {
  position: relative;
}

.container:last-of-type {
  display: flex;
  flex-direction: column;
}

@media (max-width: 800px) {
  section {
    width: calc(100vw - 20px);
    padding: 10px;
  }
}

section p,
section ul li {
  color: #150702;
  margin-top: 4px;
  margin-bottom: 14px;
}

section p:last-child,
section ul li:last-child {
  margin-bottom: 4px;
}

section ul li {
  list-style: inside disc;
  padding-left: 1em;
  text-indent: -1em;
}

section .komidashi {
  width: 100%;
  font-size: 26px;
  font-family: "FOT-筑紫Aオールド明朝 Pr6 B", sans-serif;
  font-weight: 600;
  line-height: 2;
  text-align: center;
  background: no-repeat bottom/contain url("../images/komidashi.png");
  margin: 20px auto;
  color: #77566A;
  text-shadow: 0 1px 1px #8B7083;
}

section .paragraph {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* 高い方に高さを揃える */
  gap: 14px;
}

section .contents-content,
section .contents-image {
  display: flex;
  flex-direction: column;
  justify-content: center; /* 親の高さに対して中央寄せ */
}

section .contents-image {
  flex: 1 0 320px;
  width: auto; /* HTML側でwidth/height指定を許可 */
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 640px) {
  section .contents-image {
    flex-shrink: 1;
    flex-basis: 45%;
    min-width: 160px;
  }
}

section .contents-image img {
  position: sticky;
  top: 0;
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

section .contents-content {
  flex: 1 2 auto;
}

section .contents-megami {
  margin: 0 auto;
  text-align: center;
  max-width: 701px;
  min-width: 350px;
}

section .contents-megami>img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

/*******************************
フッター
*******************************/

#footer {
  position: relative;
  bottom: 0;
  z-index: -1;
  text-align: center;
  margin-top: auto;
}

#footer img {
  display: block;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  object-fit: cover;
  object-position: center;
}

/*******************************
背景キャラ
*******************************/

/* Show all characters and position them at regular intervals */
#bg_characters .bgchara-1,
#bg_characters .bgchara-2,
#bg_characters .bgchara-3,
#bg_characters .bgchara-4,
#bg_characters .bgchara-5,
#bg_characters .bgchara-6 {
  display: block;
}

#bg_characters .bgchara-1.bgchara-left { top: calc(1000px * 1); }
#bg_characters .bgchara-1.bgchara-right { top: calc(1000px * 1); }

#bg_characters .bgchara-2.bgchara-left { top: calc(1000px * 2); }
#bg_characters .bgchara-2.bgchara-right { top: calc(1000px * 2); }

#bg_characters .bgchara-3.bgchara-left { top: calc(1000px * 3); }
#bg_characters .bgchara-3.bgchara-right { top: calc(1000px * 3); }

#bg_characters .bgchara-4.bgchara-left { top: calc(1000px * 4); }
#bg_characters .bgchara-4.bgchara-right { top: calc(1000px * 4); }

#bg_characters .bgchara-5.bgchara-left { top: calc(1000px * 5); }
#bg_characters .bgchara-5.bgchara-right { top: calc(1000px * 5);}

#bg_characters .bgchara-6.bgchara-left { top: calc(1000px * 6);}
#bg_characters .bgchara-6.bgchara-right { top: calc(1000px * 6);}

/* 2周目（secondクラス）を追加 */
#bg_characters .bgchara-1.bgchara-left.second { top: calc(1000px * 7); }
#bg_characters .bgchara-1.bgchara-right.second { top: calc(1000px * 7); }
#bg_characters .bgchara-2.bgchara-left.second { top: calc(1000px * 8); }
#bg_characters .bgchara-2.bgchara-right.second { top: calc(1000px * 8); }
#bg_characters .bgchara-3.bgchara-left.second { top: calc(1000px * 9); }
#bg_characters .bgchara-3.bgchara-right.second { top: calc(1000px * 9); }
#bg_characters .bgchara-4.bgchara-left.second { top: calc(1000px * 10); }
#bg_characters .bgchara-4.bgchara-right.second { top: calc(1000px * 10); }
#bg_characters .bgchara-5.bgchara-left.second { top: calc(1000px * 11); }
#bg_characters .bgchara-5.bgchara-right.second { top: calc(1000px * 11); }
#bg_characters .bgchara-6.bgchara-left.second { top: calc(1000px * 12); }
#bg_characters .bgchara-6.bgchara-right.second { top: calc(1000px * 12); }
/*******************************
backtotop
*******************************/

.backtotop {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 99;
}
