/* 小森 */
* {
  margin: 0;
  padding: 0;
}

/* メインタイトル */
.menu-firstview {
  background-image: url("../images/subh1_1.jpg");
}


/* 横並びアイテム全体 */
/* リンク飛び時ヘッダー部分重なり回避 */
#link-nagare,#link-mono {
  scroll-margin-top: 250px; /* ヘッダーの高さ分 + 少し余裕 */
}


.flex_yoko {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.item {
  text-align: center;
  width: 180px;
}

.item-image {
  width: 130px;
  height: auto;
}

.item-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

.item-desc {
  color: #555;
  line-height: 1.6;
}

/*yoko*/
#yoko {
  width: 100%;
  margin: 0 auto;
  max-width: 1351px;
}


/*step1*/
.owner-flex {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-left: 100px;
  margin-right: 100px;
}

#owner-block .owner-flex {
  margin-bottom: 30px;
}


.owner-image {
  width: 500px;
  height: auto;
}

.image-right {
  display: flex;
  justify-content: flex-end;
  margin: 0 100px;
}

.right-photo {
  width: 400px;
}



/*step2*/
.step2-flex {
  display: flex;
  gap: 50px;
  justify-content: center;
  margin: 0 100px;
}

#step2 .align-bottom {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

#step2 .align-bottom img {
  margin-right: 50px;
  max-width:30%;
}

#step2 .image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}


/*step3*/
#step3 {
  position: relative;
  background-image: url("../images/step3bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 90vh;
  box-sizing: border-box;
  padding: 0 100px;
}

#step3 .text-block {
  position: absolute;
  bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  padding: 30px 40px;
  border-radius: 16px;
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.75);
}


/*step4*/
.image-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.image-row img {
  width: 500px;
  /* 必要に応じて調整 */
  display: block;
}

#step4 .text-block {
  margin: 0 130px;
}

/*step5*/


/* step全体のテキスト */
.step {
  margin-bottom: 80px;
  overflow: hidden;
}

.step h3 {
  font-size: 26px;
  margin-bottom: 30px;
}
.step h3::before {
    position: relative;
    display: inline-block;
    content: url(../images/icon_tubomi.svg);
    width: 20px;
    height: 20px;
    padding: 6px 12px 6px 0 ;
    line-height: 1;
    bottom: -2px;
}

.step p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
}

#owner-block .owner-text {
  max-width: 50%;
}

#step2 .text-block {
  max-width: 40%;
}

#step4 .text-block {
  max-width: 60%;
}


/* レスポンシブ *//* タブレット以下 スマホ以上*/
@media screen and (min-width: 767px) and (max-width: 1080px) {
  /* リンク飛び時ヘッダー部分重なり回避 */
#link-nagare,#link-mono {
  scroll-margin-top: 60px; /* ヘッダーの高さ分 + 少し余裕 */
}

      header {
        display: none !important;
    }
  .owner-flex {
    flex-direction: column;
    gap: 40px;
    margin: 0 60px;
  }

  #step2 .align-bottom img {
    max-width: 35%;
  }


  .step h3 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .step p {
    font-size: 15px;
    line-height: 1.7;
  }

  .step .text-block,
  .step .owner-text {
    padding: 0 40px;
  }

  .step {
    margin-bottom: 120px;
  }

  #owner-block .owner-text,
  #shower-block .owner-text {
    max-width: 80%;
  }

  #step2 .text-block {
    max-width: 50%;
  }

  #step4 .text-block {
    max-width: 60%;
  }
}
/* タブレット以下 */
@media screen and (max-width: 1080px) {}

/* 大きめスマホ以下 */
@media screen and (max-width: 768px) {
  /* リンク飛び時ヘッダー部分重なり回避 */
#link-nagare,#link-mono {
  scroll-margin-top: 60px; /* ヘッダーの高さ分 + 少し余裕 */
}

    header {
        display: none !important;
    }
  /*持ち物*/
  .flex_yoko {
    justify-content: center;
    gap: 10px;
    padding: 0 60px;
  }

  .item {
    width: 48%;
    margin-bottom: 20px;
  }

  .item-image {
    width: 100px;
  }

  .item-title {
    font-size: 14px;
  }

  .item-desc {
    font-size: 13px;
    line-height: 1.5;
  }

  /*step1*/
  .owner-flex {
    flex-direction: column;
    gap: 60px;
  }

  .owner-image {
    width: 80%;
    display: block;
    margin-left: 0;
    margin-right: auto;
  }

  .image-right {
    display: block;
  }

  .right-photo {
    width: 80%;
    display: block;
    margin-left: auto;
    margin-right: 0;
  }

  #owner-block .right-photo {
  }

  /*step2*/
  .step2-flex {
    flex-direction: column;
    gap: 0;
  }

  .text-block {
    order: 2;
    margin: 60px 0;
  }

  .image-wrapper {
    order: 1;
  }

  .image-wrapper img {
    width: 90%;
    height: auto;
    display: block;
  }

  #step2 .align-bottom {
    justify-content: flex-start;
    /* ← 左寄せ */
    padding: 0 20px;
    /* お好みで余白調整 */
  }

  #step2 .align-bottom img {
    width: 50%;
    /* ← お好みで変更OK */
    height: auto;
    margin-left: 80px;
    /* 余白リセット */
  }

  /*step3*/
  #step3 {
    min-height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    /* ← おしゃれ感UP */
  }

  #step3 .text-block {
    left: auto;
    right: 20px;
    bottom: 0px;
    margin-left: auto;
    margin-right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /*step４*/
  .image-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* モバイルでは間隔少し狭め */
    margin-top: 50px;
  }

  .image-row img {
    width: 75%;
    /* モバイルでは横幅にフィット */
    height: auto;
  }

  #step4 .text-block {
    margin-left: 100px;
    /* 両端マージン縮小 */
    font-size: 14px;
    /* テキストが大きすぎる場合に備えて */
    line-height: 1.6;
  }

  /*全体*/
  .step {
    margin-bottom: 150px;
  }

  #owner-block .owner-text,
  #shower-block .owner-text,
  #step2 .text-block,
  #step4 .text-block {
    max-width: 90%;
  }

  #shower-block .right-photo {
    max-width: 60%;
  }
}

/* 小さめスマホ以下 */
@media screen and (max-width: 667px) {
  /* リンク飛び時ヘッダー部分重なり回避 */
#link-nagare,#link-mono {
  scroll-margin-top: 60px; /* ヘッダーの高さ分 + 少し余裕 */
}

      header {
        display: none !important;
    }
    .flex_yoko {
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
  }

  .item {
    width: 48%;
    margin-bottom: 16px;
  }

  .item-image {
    width: 80px;
  }

  .item-title {
    font-size: 13px;
  }

  .item-desc {
    font-size: 12px;
    line-height: 1.4;
  }

  /*1と5*/
  .owner-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-left: 0px;
    margin-right: 0px;
  }

  .image-right {
    display: block;
    text-align: right;
    padding: 0;
    margin: 0;
  }

  .right-photo {
    width: 60%;
    display: inline-block;
    margin: 0;
  }

  /*step2*/

  .step2-flex {
    margin: 0px;
  }

  .image-wrapper {
    width: 85%;
  }

  #step2 .align-bottom {
    display: flex;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
  }

  #step2 .align-bottom img {
    max-width: unset;
    width: 60%;
    height: auto;
    margin: 0;
  }

  /*step3*/
  #step3 {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 100px 16px 16px;
    position: relative;
  }

  #step3 .text-block {
    position: static;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 24px 16px;
    border-radius: 16px;
    margin-top: auto;
    margin-bottom: 40px;
  }

  #step3 h3 {
    text-align: center;
  }

  /*step4*/

  #step4 .text-block {
    margin: 0;
  }

  .image-row img {
    width: 90%;
    margin-bottom: 30px;
  }

  /*全体*/
  .step .text-block,
  .step .owner-text {
    padding: 0 16px;
  }

  .step h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .step p {
    font-size: 14px;
    line-height: 1.6;
  }

  .step {
    margin-bottom: 50px;
  }

  #owner-block .owner-text,
  #shower-block .owner-text,
  #step2 .text-block,
  #step4 .text-block {
    max-width: 100%;
  }
}





/* アニメーション */
@keyframes spin-bdot-anim {
  0% {
    box-shadow: #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px;
  }

  50% {
    transform: rotate(180deg);
  }

  25%,
  75% {
    box-shadow: #da3516 26px 0px 0px,
      #da3516 -26px 0px 0px,
      #da3516 0px 26px 0px,
      #da3516 0px -26px 0px,
      #da3516 19px -19px 0px,
      #da3516 19px 19px 0px,
      #da3516 -19px -19px 0px,
      #da3516 -19px 19px 0px;
  }

  100% {
    transform: rotate(360deg);
    box-shadow: #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px;
  }
}

@keyframes spin-sdot-anim {
  0% {
    box-shadow: #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px;
  }

  25%,
  75% {
    box-shadow: #da3516 14px 0px 0px,
      #da3516 -14px 0px 0px,
      #da3516 0px 14px 0px,
      #da3516 0px -14px 0px,
      #da3516 10px -10px 0px,
      #da3516 10px 10px 0px,
      #da3516 -10px -10px 0px,
      #da3516 -10px 10px 0px;
  }

  100% {
    box-shadow: #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px,
      #da3516 0px 0px 0px;
  }
}

@keyframes scroll1 {
  from {
    height: 390px;
  }

  5%,
  100% {
    height: 80px;
  }
}

@keyframes scroll2 {
  from {
    transform: scaleY(1);
    translate: 0 0;
  }

  5%,
  100% {
    transform: scaleY(0);
    translate: 0 -330px;
  }
}


/* 井上さんハンバーガー */
/* 1080px以下でハンバーガー表示、ヘッダー非表示 */
/* デフォルト（PCサイズ以上）: ヘッダーとナビを表示、ハンバーガー非表示 */

/* スマホサイズ（1080px以下）: ハンバーガー表示、PCナビ非表示 */
@media screen and (max-width: 1080px) {
  /* リンク飛び時ヘッダー部分重なり回避 */
#link-nagare,#link-mono {
  scroll-margin-top: 70px; /* ヘッダーの高さ分 + 少し余裕 */
}


  @keyframes scroll1 {
    from {
      height: 390px;
    }

    5%,
    100% {
      height: 60px;
    }
  }

  header .logo {
    display: inline-block !important;
    width: 160px;
    inset: 12px 20px;
  }

  header {
    display: none !important;
  }

  #menu-toggle {
    display: flex !important;
  }

  /* メニュー開いてるときの状態（バツ印） */
  #menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 8px);
  }

  #menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -8px);
  }
}