/*ファーストビュー*/
#firstview {
  background-image: url("./recipeLp-assets/firstview.jpg");
  background-color: #e9e8e6;
  background-size: cover;
  background-position: center; /* ← これが圧倒的に安定 */
  background-repeat: no-repeat;
  display: flex;
}

.firstview-content {
  position: relative;
  width: fit-content;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.43);
  padding: 26px;
  opacity: 0;
  animation-name: fadein;
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

/* 1200px 以下で縦並びに切り替え */
@media screen and (max-width: 1200px) {
  .firstview-content {
    left: 15%;
  }
}

@keyframes fadein {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.firstview-content-1,
.firstview-content-2,
.firstview-content-3 {
  margin: 50px 0 0;
}

.firstview-content-1 p,
.firstview-content-2 p,
.firstview-content-3 p {
  margin: 5px 0 0;
  text-align: left;
}

.recipe-logo {
  margin: 80px 0 0 0;
}

/*アバウト部分*/

.watch,
.eat,
.sumaho {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sns-button {
  padding: 20px 40px;
  border-radius: 100px;
  border: none;
  margin: 50px auto;
  background-color: rgb(255, 247, 230);
}

.line img {
  text-align: center;
}

#about-content,
#about-specific {
  background-color: #faebcc;
  height: 900px;
}

#about {
  background-color: #faebcc;
}

.about-content,
.about-specific-content,
.recipe-content,
.campaign-content {
  text-align: center;
}

.circle {
  background: url(./recipeLp-assets/about1circle.png);
  position: relative;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease,
    transform 1s ease;
  flex: 0 1 30%; /* 0 1 30% の方が安定することが多い */
  max-width: 364px;
  min-width: 250px;
  margin: 10px;
  height: 357px;
  background: url(./recipeLp-assets/about1circle.png) no-repeat center;
  background-size: contain; /* auto より安定 */
}

/* 親要素を flex に */
.about-specific-content-lists {
  display: flex;
  flex-wrap: wrap; /* 幅が足りなくなったら折り返す */
  justify-content: center; /* 中央揃え */
  gap: 20px; /* 並びの間隔 */
}

/* 狭い画面で1列に */
@media screen and (max-width: 1200px) {
  .about-specific-content-list,
  .circle {
    flex: 0 1 100%;
    margin: 0 auto;
  }
}
/* 表示時にふわっとアニメーション */
.circle.show {
  opacity: 1;
  transform: translateY(0);
}

.about-specific-content-list {
  display: inline-block;
  box-sizing: border-box; /* 崩れ防止 */
  vertical-align: top;
  text-align: center;
}

.about-specific-content-lists {
  text-align: start;
  justify-self: center;
}

/*レシピ部分*/
#recipe-1page,
#recipe-2page {
  background-color: #faebcc;
  height: 100%;
}

#recipe-2page {
  padding-bottom: 0;
}

.recipe-content-first,
.recipe-content-second {
  background: url(./recipeLp-assets/recipe1.png);
  background-size: cover;
  height: 100%;
  width: 500px;
  background-repeat: no-repeat;
  margin: 20px;
  display: inline-block;
  vertical-align: top;
  text-align: left;
  padding: 20px;
}

.recipe-content-header {
  text-align: center;
}

.flow {
  margin: 0;
  text-align: center;
}

.recipe-name,
.honnyaku {
  writing-mode: vertical-rl;
}

.material {
  color: #444;
  display: flex;
  align-items: center;
}

.material:before,
.material:after {
  content: "";
  flex-grow: 1;
  border-top: 4px dotted #b1b0b0;
  display: block;
}

.material:before {
  margin-right: 0.4em;
}
.material:after {
  margin-left: 0.4em;
}

.butamoyashi,
.honnyaku,
.recipe-name {
  display: inline-block;
  vertical-align: top;
}

.recipe-image {
  width: 35%;
}

.flow ol {
  counter-reset: number; /*数字をリセット*/
  list-style-type: none !important; /*数字を一旦消す*/
}

.flow ol li {
  padding: 2em 0;
  position: relative;
  line-height: 1.5em;
  border-bottom: solid 2px #b1b0b0;
}

ol.flow-lists {
  padding: 0;
}

.point-box {
  position: relative;
  margin: 2em 0;
  padding: 0.5em 1em;
  border: solid 3px rgb(255, 171, 0);
  border-radius: 8px;
}

.point-box .box-title {
  position: absolute;
  display: inline-block;
  top: -13px;
  left: 10px;
  padding: 0 9px;
  line-height: 1;
  font-size: 19px;
  background: #fff;
  color: rgb(255, 171, 0);
  font-weight: bold;
}
.point-box p {
  margin: 0;
  padding: 0;
  text-align: center;
}

/*ラインアップ部分*/
.sns-button-list {
  padding: 20px 40px;
  border-radius: 100px;
  border: none;
  margin: 30px auto;
  background-color: rgb(255, 247, 230);
}

.lineup-content-first {
  background: url(./recipeLp-assets/lineupbackground.png);
  height: 602px;
  max-width: 100%;
  background-size: cover;
}

#lineup,
#campaign {
  background-color: white;
  justify-content: center; /* 横方向中央揃え */
  text-align-last: center;
}

.lineup-content {
  display: flex;
  margin: 2em 5em;
}

/* 1200px 以下で縦並びに切り替え */
@media screen and (min-width: 1201px) {
  .lineup-content-first,
  .lineup-content-second {
    display: inline; /* table-cell を解除 */
    width: 100%; /* 大画面用 */
    height: 100%;
    max-width: 100%; /* 画面が狭いときは縮む */
    box-sizing: border-box;
  }
}

/* 1200px 以下で縦並びに切り替え */
@media screen and (max-width: 1200px) {
  .lineup-content {
    flex-direction: column; /* 上下に並べる */
    flex-wrap: wrap; /* 狭い画面で折り返し可能に */
  }
}

.lineup-content-second ol {
  counter-reset: number; /*数字をリセット*/
  list-style-type: none !important; /*数字を一旦消す*/
  margin: auto;
  width: 70%;
}

.lineup-content-second a {
  color: inherit;
  text-decoration: none;
}

.lineup-content-second ol li {
  padding: 2em 0;
  position: relative;
  padding-left: 1.4em;
  line-height: 1.5em;
  border-bottom: solid 5px #b1b0b0;
  transition: all 0.3s ease; /* ← アニメーションを追加 */
}

.lineup-content-second ol li:hover {
  transform-origin: right top;
  border-bottom-color: rgb(255, 171, 0); /* ← ホバー時にオレンジに変化 */
  color: orange;
  transform: scale(1.1);
}

.lineup-content-second ol li:before,
.flow ol li:before {
  counter-increment: number;
  content: counter(number, decimal-leading-zero) ".";
  position: absolute;
  left: 0;
  font-family: "Bradley Hand", "Segoe Script", "Segoe Print", sans-serif; /*手書き風のフォント*/
  font-size: 1.3em; /*フォントサイズ*/
}

.lineup-title,
.recipe-title,
.campaign-title {
  padding-top: 0;
  padding-bottom: 50px;
}

/*キャンペーン部分*/
#campaign {
  background: url(recipeLp-assets/SHAREENJOY.png);
  height: 742px;
  background-repeat: no-repeat;
}

.campaign-content-list {
  display: flex;
}

/* 1200px 以下で縦並びに切り替え */
@media screen and (min-width: 1201px) {
  .campaign-content-first,
  .campaign-content-second,
  .campaign-content-third {
    margin: auto 0;
    max-width: 100%; /* 画面が狭いときは縮む */
    box-sizing: border-box;
  }
}

/* 1200px 以下で縦並びに切り替え */
@media screen and (max-width: 1200px) {
  .campaign-content-list {
    flex-direction: column; /* 上下に並べる */
    flex-wrap: wrap; /* 狭い画面で折り返し可能に */
  }
}

.small {
  margin: 0;
  color: rgb(255, 171, 0);
}

.range {
  padding-bottom: 0;
  padding-top: 50px;
}

.sumaho-waku {
  width: 50%;
}

.campaign-content-list {
  margin: 0 160px;
}

/*フッター*/
footer {
  background-color: #faebcc;
  height: 100px;
  display: flex;
  justify-content: center; /* 水平方向に中央揃え */
}

footer small {
  align-self: flex-end; /* 下寄せ */
}

.top {
  margin: 100px;
}

.top a {
  text-decoration: none;
  color: inherit;
}

.top-text {
  margin: 0;
  color: orange;
  font-family: cursive;
  font-weight: 900;
}

.top-icon {
  width: 3%;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: all 1s ease;
}

/* ホバー時：少し上に浮く */
.top:hover {
  transform: translateY(-5px);
}

/* クリック時：押し込まれる */
.top:active {
  transform: translateY(0);
}

/*境界線*/
svg {
  position: relative;
}

.yasai-left {
  position: absolute;
  height: 20%;
  opacity: 0;
  transform: translateX(0%) rotate(0deg); /* 左の外からスタート */
  right: 85%;
  z-index: 1;
}

.show-left {
  animation: hidarikurukuru 0.5s ease-out forwards;
}

/* 回転＋フェードイン＋スライドイン */
@keyframes hidarikurukuru {
  0% {
    transform: translateX(-200%) rotate(0deg);
    opacity: 0;
  }
  100% {
    transform: translateX(30%) rotate(400deg);
    opacity: 1;
  }
}

.yasai-right {
  position: absolute;
  height: 30%;
  opacity: 0;
  transform: translateX(0%) rotate(0deg); /* 右の外からスタート */
  left: 90%;
  z-index: 1;
}

.show-right {
  animation: migikurukuru 0.5s ease-out forwards;
}

@keyframes migikurukuru {
  0% {
    transform: translateX(200%) rotate(0deg);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) rotate(360deg);
    opacity: 1;
  }
}

svg.cstm-wave {
  display: block;
  margin-bottom: -2px !important;
  width: 100%;
}

/*共通部分*/
h2 {
  padding: 100px 0 1% 0;
  margin: 0;
}

h3 {
  background: linear-gradient(transparent 60%, white 30%);
  display: inline-block;
}

.container {
  display: flex; /* 子要素を中央に配置 */
  flex-direction: column; /* 縦方向に並べる */
  align-items: center; /* 横方向中央 */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

#about,
#about-content,
#recipe-1page,
#recipe-2page,
#lineup,
#campaign,
#firstview,
#about-content,
#about-specific,
.bottom,
footer {
  width: 100%;
  height: 100%;
  max-width: 1400px; /* 必要なら */
  margin: 0 auto;
}

html {
  scroll-behavior: smooth; /* スムーズにスクロール */
}

html,
body {
  margin: 0 auto;
  padding: 0;
  justify-content: center; /* これでOK */
}
