/* デバッグ用 */
/* * {
 border: 1px solid #000000;
} */

/* .main {
    height: 900px;
} */

/* ==================================================================== */
body {
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  height: 100%;
  width: 100%;
  color: #fff;
  background-color: #000000;
}

.header-promotion {
  padding-top: 12px;
  color: #ff0000;
  background-color: #000000;
  font-size: 1.2rem;
  text-align: center;
  line-height: 1;
  margin: 0;
}

li {
  list-style-type: none;
}

ul {
  padding-left: 0;
  margin: 0;
}

ul .list-nav {
  padding-left: 0;
}

.header-rogo img {
  width: 15%;
  padding-top: 26px;
  margin: 0 auto;
  display: block;
}
nav {
  text-align: center;
  position: relative;
  z-index: 100;
  background-color: #000000;
}

/*ナビゲーションを横並びに*/
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}
/*2階層目以降は横並びにしない*/
nav ul ul {
  display: block;
}

/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li {
  position: relative;
}

/*ナビゲーションのリンク設定*/
nav ul li a {
  display: block;
  text-decoration: none;
  color: #ffffff;
  padding: 20px 35px;
  transition: all 0.3s;
}
nav ul li li a {
  padding: 10px 35px;
}

nav ul li a:hover {
  color: #ff0000;
}

/* お気に入りの個数表示 */
.icon-fav > .count,
.icon-cart > .count {
  /* display: none; */
  pointer-events: none;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 23px;
  z-index: 10;
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  right: 25px;
  bottom: 22px;
  background: #e03535be;
}

#header > div.header-in > nav > ul > li:nth-child(3) > a::after {
  position: absolute;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #ff0000;
  bottom: -1px;
  transform: scale(0, 1);
  transform-origin: right top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の右端*/
  transition: transform 0.3s; /*変形の時間*/
}

#header > div.header-in > nav > ul > li:nth-child(3) > a:hover::after {
  transform: scale(1, 1); /*ホバー後、x軸方向に1（相対値）伸長*/
  transform-origin: left top; /*左から右に向かう*/
}

#header > div.header-in > nav > ul > li:nth-child(4) > a::after {
  position: absolute;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #ff0000;
  bottom: -1px;
  transform: scale(0, 1);
  transform-origin: right top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の右端*/
  transition: transform 0.3s; /*変形の時間*/
}

#header > div.header-in > nav > ul > li:nth-child(4) > a:hover::after {
  transform: scale(1, 1); /*ホバー後、x軸方向に1（相対値）伸長*/
  transform-origin: left top; /*左から右に向かう*/
}

#header > div.header-in > nav > ul > li:nth-child(5) > a::after {
  position: absolute;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #ff0000;
  bottom: -1px;
  transform: scale(0, 1);
  transform-origin: right top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の右端*/
  transition: transform 0.3s; /*変形の時間*/
}

#header > div.header-in > nav > ul > li:nth-child(5) > a:hover::after {
  transform: scale(1, 1); /*ホバー後、x軸方向に1（相対値）伸長*/
  transform-origin: left top; /*左から右に向かう*/
}

/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/
nav ul li.has-child::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 25px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #999;
  border-right: 2px solid #999;
  transform: rotate(135deg);
}

/*3階層目を持つliの矢印の設定*/
nav ul ul li.has-child::before {
  content: "";
  position: absolute;
  /* left: 6px; */
  top: 17px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

/*== 2・3階層目の共通設定 */

/*下の階層を持っているulの指定*/
nav li.has-child ul {
  /*絶対配置で位置を指定*/
  position: absolute;
  left: 0;
  top: 62px;
  z-index: 4;
  /*形状を指定*/
  background: #000000;
  width: 450px;
  padding-inline: 0px;
  border: 1px solid #ffffff;
  /*はじめは非表示*/
  visibility: hidden;
  opacity: 0;
  /*アニメーション設定*/
  transition: all 0.3s;
}

/*hoverしたら表示*/
nav li.has-child:hover > ul,
nav li.has-child ul li:hover > ul,
nav li.has-child:active > ul,
nav li.has-child ul li:active > ul {
  visibility: visible;
  opacity: 1;
}

/*ナビゲーションaタグの形状*/
nav li.has-child ul li a {
  color: #ffffff;
  border-bottom: solid 1px rgba(255, 255, 255, 0.6);
}

nav li.has-child ul li:last-child > a {
  border-bottom: none;
}

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active {
  /* background: #000000; */
  color: #ff0000;
}

/*==3階層目*/

/*3階層目の位置*/
nav li.has-child ul ul {
  top: 0;
  left: 182px;
  background: #000000;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active {
  background: #000000;
}

#nav {
  height: 70px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: solid #ffffff 1px; /*borderの指定*/
  padding-bottom: 7px;
  will-change: transform;
}
#nav.fixed {
  position: fixed; /*fixedを設定して固定*/
  z-index: 999; /*最前面へ*/
  top: 0; /*位置指定*/
  left: 0; /*位置指定*/
}
.child-menu {
  display: flex;
}
/* -----------------main_visual------------------ */
.img-frame {
  position: relative;
  width: 840px;
  height: 470px;
  overflow: hidden;
  margin: 0 auto;
  z-index: 1;
  justify-content: center;
}
/* .img-frame {
    width: 100%;
    height: 1080px;
    z-index: 1;
} */
.img-01,
.img-02,
.img-03,
.img-04 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
}
.img-01 {
  background-image: url("../img/main_001.png");
  animation: slide-animation-01 32s infinite;
}
.img-02 {
  background-image: url("../img/main_002.png");
  animation: slide-animation-02 32s infinite;
}
.img-03 {
  background-image: url("../img/main_003.png");
  animation: slide-animation-03 32s infinite;
}
.img-04 {
  background-image: url("../img/main_004.png");
  animation: slide-animation-04 32s infinite;
}
@keyframes slide-animation-01 {
  0%   { opacity: 0; transform: scale(1.0); }
  5%   { opacity: 1; transform: scale(1.01); }
  25%  { opacity: 1; transform: scale(1.05); }
  30%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.0); }
}

@keyframes slide-animation-02 {
  0%   { opacity: 0; transform: scale(1.0); }
  25%  { opacity: 0; transform: scale(1.0); }
  30%  { opacity: 1; transform: scale(1.01); }
  50%  { opacity: 1; transform: scale(1.05); }
  55%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.0); }
}

@keyframes slide-animation-03 {
  0%   { opacity: 0; transform: scale(1.0); }
  50%  { opacity: 0; transform: scale(1.0); }
  55%  { opacity: 1; transform: scale(1.01); }
  75%  { opacity: 1; transform: scale(1.05); }
  80%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.0); }
}

@keyframes slide-animation-04 {
  0%   { opacity: 1; transform: scale(1.05); }
  5%   { opacity: 0; transform: scale(1.06); }
  75%  { opacity: 0; transform: scale(1.0); }
  80%  { opacity: 1; transform: scale(1.01); }
  100% { opacity: 1; transform: scale(1.05); }
}
/* ------- */
@media screen and (max-width: 767px) {
  .img-frame {
    justify-content: center;
    width: 100%;
    height: 300px;
    z-index: 1;
  }
  .img-01,
  .img-02,
  .img-03,
  .img-04 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .img-01 {
    background-image: url("../img/main_001.png");
    animation: slide-animation-01 32s infinite;
  }
  .img-02 {
    background-image: url("../img/main_002.png");
    animation: slide-animation-02 32s infinite;
  }
  .img-03 {
    background-image: url("../img/main_003.png");
    animation: slide-animation-03 32s infinite;
  }
  .img-04 {
    background-image: url("../img/main_004.png");
    animation: slide-animation-04 32s infinite;
  }
  @keyframes slide-animation-01 {
  0%   { opacity: 0; transform: scale(1.0); }
  5%   { opacity: 1; transform: scale(1.01); }
  25%  { opacity: 1; transform: scale(1.05); }
  30%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.0); }
}

@keyframes slide-animation-02 {
  0%   { opacity: 0; transform: scale(1.0); }
  25%  { opacity: 0; transform: scale(1.0); }
  30%  { opacity: 1; transform: scale(1.01); }
  50%  { opacity: 1; transform: scale(1.05); }
  55%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.0); }
}

@keyframes slide-animation-03 {
  0%   { opacity: 0; transform: scale(1.0); }
  50%  { opacity: 0; transform: scale(1.0); }
  55%  { opacity: 1; transform: scale(1.01); }
  75%  { opacity: 1; transform: scale(1.05); }
  80%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.0); }
}

@keyframes slide-animation-04 {
  0%   { opacity: 1; transform: scale(1.05); }
  5%   { opacity: 0; transform: scale(1.06); }
  75%  { opacity: 0; transform: scale(1.0); }
  80%  { opacity: 1; transform: scale(1.01); }
  100% { opacity: 1; transform: scale(1.05); }
}
}
/* -----------------End_main_visual------------------ */
/* -----------------main_content---------------- */
.main {
  padding: 50px 0;
}
.section_text {
  text-align: center;
}
.section_text_login {
  text-align: center;
  padding: 65px 0;
}
.login_container {
  width: 100%;
  max-width: 400px;
  margin: 90px auto 0; /* 上に50pxの余白を追加 */
  padding: 20px;
  background-color: #333;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.login_form {
  display: flex;
  flex-direction: column;
}

.login_form h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

.form_group {
  margin-bottom: 15px;
}

.form_group label {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}

.form_group input {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
}

.login_button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #ff0000;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login_button:hover {
  background-color: #cc0000;
}

.register_button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.register_button:hover {
  background-color: #0056b3;
}

.register_container {
  width: 100%;
  max-width: 500px;
  margin: 90px auto 0;
  padding: 20px;
  background-color: #333;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.register_form {
  display: flex;
  flex-direction: column;
}

.register_form h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

.form_group {
  margin-bottom: 15px;
}

.form_group label {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}

.form_group input {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
}

.register_button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.register_button:hover {
  background-color: #0056b3;
}

.section_content.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
  display: none; /* 追加 */
}
.section_content_list.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
  display: none; /* 追加 */
}

ul li a {
  text-decoration: none;
  color: #ffffff;
}
ul li a :hover {
  color: #ff0000;
}

.item_img {
  margin: 0 auto;
}
.item_name {
  text-align: center;
  margin-bottom: 0;
}
.item_price {
  text-align: center;
  margin-top: 4px;
}
.button {
  display: block;
  margin: 0 auto;

  width: 200px;
  height: 50px;
  margin-top: 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 10px;
  color: #000000;
  background-color: #ffffff;
  cursor: pointer;
  outline: none;
  transition: 0.3s;
  font-weight: bold;
}
.button:hover {
  opacity: 0.8;
  transform: scale(1.1);
  color: #1100ff;
  /* color: #ff0000; */
}

/* -----------item_content-------------*/
.item_container {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  justify-items: center; /* 中央揃え */
}
.item_wrap {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 10px;
}

.item_container img {
  width: 100%;
  height: auto;
  max-width: 150px; /* 画像の最大幅を設定 */
}

.favorite_wrap {
  display: flex;
}
/* -----------item_content-------------*/
/* ---------モデルcontent----------- */
.model_container {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.model_wrap {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 10px;
}
/* ---------モデルcontent----------- */
/* -------------------コピーライト------------------- */
.footer-copyright {
  color: #ffffff;
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
/* -------------------コピーライト------------------- */
/* -----------------End_main_content---------------- */

/*==768px以下の形状*/

@media screen and (max-width: 768px) {
  nav {
    padding: 0;
  }

  nav ul {
    display: block;
  }

  nav li.has-child ul,
  nav li.has-child ul ul {
    border: none;
    border-bottom: 1px solid #ffffff;
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    visibility: visible; /*JSで制御するため一旦表示*/
    opacity: 1; /*JSで制御するため一旦表示*/
    display: none; /*JSのslidetoggleで表示させるため非表示に*/
    transition: none; /*JSで制御するためCSSのアニメーションを切る*/
  }

  nav ul li {
    text-align: center;
  }

  nav ul li a {
    border-bottom: 1px solid #ffffff;
    border-top: 1px solid #ffffff;
  }

  /*矢印の位置と向き*/

  nav ul li.has-child::before {
    left: 20px;
  }

  nav ul ul li.has-child::before {
    transform: rotate(135deg);
    left: 20px;
  }

  nav ul li.has-child.active::before {
    transform: rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .header-promotion {
    font-size: 1rem;
    line-height: 1.4;
  }
}

@media (max-width: 768px) {
  .header-rogo img {
    min-width: 30%;
  }
}

@media (max-width: 768px) {
  #nav {
    height: auto;
    width: auto;
    display: block;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
  }
  #nav ul {
    padding-inline-start: 0;
  }
  #nav.fixed {
    position: static;
    z-index: auto;
    top: auto;
    left: auto;
  }
}

/* -----------商品詳細ページ----------- */

.shopping_container {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 0 auto;
}

.product_left,
.product_right {
  width: 48%;
}

.main_image img {
  width: 100%;
  height: auto;
}

.thumbnail_container {
  display: flex;
  flex-wrap: wrap; /* 折り返しを有効にする */
  justify-content: space-between;
  margin-top: 10px;
}

.thumbnail_container img {
  width: 30%;
  height: auto;
  cursor: pointer;
  margin-bottom: 10px; /* 下に余白を追加 */
}

.product_name {
  font-size: 2rem;
  margin-bottom: 20px; /* 間隔を調整 */
}

.product_price {
  font-size: 1.5rem;
  margin-bottom: 20px; /* 間隔を調整 */
}

.product_description {
  margin-bottom: 30px; /* 間隔を調整 */
}

.product_size,
.product_color {
  margin-bottom: 30px; /* 間隔を調整 */
}

.product_amount {
  margin-bottom: 30px; /* 間隔を調整 */
}

.product_amount select {
  width: 11%; /* 横幅を修正 */
}

.wishlist_button,
.cart_button {
  display: block;
  width: 80%; /* 横幅を調整 */
  padding: 10px;
  margin-bottom: 20px; /* 間隔を調整 */
  border: none;
  border-radius: 5px;
  background-color: #cc0081;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.wishlist_button:hover,
.cart_button:hover {
  opacity: 0.8;
}

.favorite_container {
  width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  /* background-color: #333; */
  /* border-radius: 10px; */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.favorite_wrap {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  /* background-color: #444; */
  /* border-radius: 5%; */
  border-bottom: 1px solid #ffffff;
}

.favorite_img {
  width: 150px;
  margin-left: 15%;
}

.favorite_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 0; /* 余白をリセット */
}

.favorite_content {
  flex-grow: 1;
  text-align: center;
}

.favorite_content h2 {
  color: #fff;
  margin-bottom: 10px;
}

.favorite_content p {
  color: #ff0000;
  margin-bottom: 10px;
}

button.delete_btn {
  width: 80px;
  height: 40px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #ff0000;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

button.delete_btn:hover {
  background-color: #cc0000;
}

.cart_container {
  width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cart_wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.cart_item {
  display: flex;
  width: 100%;
  height: 180px;
  margin: 10px 0;
  border-bottom: 1px solid white;
  padding-bottom: 25px;
}

.cart_item .cart_img {
  width: 180px;
  height: 180px;
  margin-left: 10%;
}

.cart_item .cart_img img {
  width: 100%;
  height: 100%;
  vertical-align: bottom;
  object-fit: contain;
  border-radius: 8%;
}

.cart_cont {
  height: 100%;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: space-between;
}

.cart_cont h1 {
  padding-left: 30px;
  margin: 0;
}

.cart_cont .cart_cont_bottom {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.cart_cont_bottom_left,
.cart_cont_bottom_right {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 50%;
}

.cart_cont_bottom_left p,
.cart_cont_bottom_right p {
  font-size: 20px;
  margin: 0;
  text-align: left;
  margin: 10px 0;
  padding-left: 30px;
}

.cart_item .delete {
  display: flex;
  align-items: flex-end;
}

.cart_container .order_wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

.cart_container .order_wrap .all_price {
  margin: 0;
  flex-grow: 1;
  font-size: 25px;
}

.cart_container .order_wrap p {
  font-size: 25px;
  margin-right: 20%;
}

.cart_container .price {
  width: 100%;
  display: flex;
  margin-bottom: 20px;
}

.cart_container .price p {
  margin: 0;
  margin-right: 5%;
}

.cart_container .order_wrap .order {
  width: 200px;
  height: 50px;
  border-radius: 10px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .favorite_wrap {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #444;
    border-radius: 5%;
  }

  .favorite_img {
    width: 150px;
    margin-left: 0px;
  }

  .favorite_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 0; /* 余白をリセット */
  }
}

