
/* 基本リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: Arial, sans-serif;
}
body {
  margin-top: 80px; /* ナビゲーションバーの高さ分余白を確保 */
}

/* 上部の配送情報バー */
/* 上部の配送情報バー */
.top-bar {
  position: fixed; /* 固定配置 */
  top: 0; /* ページの最上部に配置 */
  width: 100%; /* 横幅を画面いっぱいに */
  background-color: #000000;
  color: rgb(255, 0, 0);
  text-align: center;
  padding: 8px 0;
  font-size: 10px;
  font-weight: bold;
  z-index: 1001; /* ナビゲーションバーより前面に配置 */
}

/* ナビゲーションバー */
.nav-bar {
  position: fixed; /* 固定配置 */
  top: 30px; /* .top-bar の高さ分下に配置 */
  width: 100%; /* 横幅を画面いっぱいに */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgb(255, 255, 255);
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000; /* 他の要素より前面に配置 */
}

/* その他調整 */
body {
  margin-top: 80px; /* .top-bar + .nav-bar の高さ分余白を確保 */
}



.nav-left, .nav-right {
  display: flex;
  gap: 20px;
}

/* .nav-centerを中央に固定 */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: system-ui
}

.nav-bar a {
  color: rgb(255, 0, 0);
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

.nav-bar a:hover {
  text-decoration: underline;
}

.box {
    position: relative; /* アニメーションの位置を調整しやすくする */
    width: 100%;
    height: 700px;
    background: #ffffff;
    overflow: hidden; /* アニメーションが外にはみ出ないようにする */
}

.box .circle-spread {
    animation: circle-spread 2s cubic-bezier(.4, 0, .2, 1) forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ff00d4;
    background-position: center;
    background-size: cover;
    clip-path: circle(0 at 50% 50%);
}

@keyframes circle-spread {
    0% {
        clip-path: circle(0 at 50% 50%);
    }
    100% {
        clip-path: circle(100% at 50% 50%);
    }
}
.box:hover .circle-spread {
    animation: circle-spread 2s cubic-bezier(.4, 0, .2, 1) forwards;
}



.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 500px; /* 単位を追加 */
    width: 80%;
    height: auto; /* 高さを自動に調整 */
    object-fit: cover;
    opacity: 0; /* 初期状態では非表示 */
    transition: opacity 0.5s ease; /* なめらかなトランジション */
}

.box:hover .hover-image {
    opacity: 1; /* hover時に画像を表示 */
}


.a3 {
  color: rgb(255, 0, 0);
  font-size: 100px;
 font-family: "Arial Black";
  position: absolute; /* 背景の位置を調整可能にする */
 /* ページの上部に配置 */
 margin-top: 4%;
  left: 70%; /* 横方向の中央に配置 */
  transform: translateX(-50%); /* 左方向に50%移動して中央揃え */
}
.a7 { 
  color: rgb(0, 0, 0);
  font-size: 70px;
  font-family: "Arial Black";
  margin-top: 12%; /* テキストを背景の下に配置 */
  margin-left: 50%;
  
}
.y2k1 {
    position: relative; /* 基準位置を設定 */
    margin-top: 0%;
    margin-left: 2%;
    width: 30%;
    height: 0%;
    height: 600px;      /* 高さを指定 */
 
}

.y2k2 {
  position: absolute; /* 絶対配置を指定 */
  margin-top: 0%;             /* y2k1の上端に配置 */
  margin-left: 1%;           /* y2k1の右端に配置 */
  width: 10%;
  height: 240px;       /* 高さを指定 */
  background-color: lightcoral; /* 視覚化用 */
}



/* カスタムプロパティの定義 */
@property --n {
    syntax: "<length-percentage>";
    inherits: false;
    initial-value: 0%;
  }
  
  /* アニメーション対象のテキスト */
  section.text {
    width: 900px;
    --lH: 30px; /* 行間の高さ */
    --n: 40%; /* 初期値 */
    background: 
      repeat-y left/var(--n) var(--lH) conic-gradient(white 265deg, black 269deg 271deg, white 275deg), 
      white;
    transition: --n linear 2s; /* アニメーションのトランジション設定 */
  }
  
  section.text:hover {
    --n: 800%; /* ホバー時にアニメーション */
  }
  
  section.text p {
    mix-blend-mode: screen;
    background: white;
    font-size: 20px;
    line-height: var(--lH);
    text-align: justify;
    margin: 0;
  }
  

.a4 { 
    font-size: 17px;
    margin-top: -25%; /* テキストを背景の下に配置 */
    margin-left: 35%;
    
}


.a5 {
    color: rgb(255, 0, 0);
    font-size: 100px;
   font-family: "Arial Black";
    position: absolute; /* 背景の位置を調整可能にする */
   /* ページの上部に配置 */
   margin-top: 20%;
    left: 35%; /* 横方向の中央に配置 */
    transform: translateX(-50%); /* 左方向に50%移動して中央揃え */
}
.parent {
    position: relative;
}

.fuwafuwa1 {
  animation: fuwafuwa 3s ease-in-out infinite alternate;
  background: url(../img/ico-apple.svg) no-repeat center center / 60px auto;
  display: inline-block;
  transition: 1.5s ease-in-out;
  width: 700px;
  height: 100px;
  font-size: 27px;
  margin-top:600px;
  margin-left: 15%;
}
 
@keyframes fuwafuwa {
  0% {
    transform:translate(0, 0) rotate(-7deg);
  }
  50% {
    transform:translate(0, -7px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(7deg);
  }
}

.fuwafuwa2 {
  animation: fuwafuwa 5s ease-in-out infinite alternate;
  background: url(../img/ico-apple.svg) no-repeat center center / 60px auto;
  display: inline-block;
  transition: 1.5s ease-in-out;
  width: 550px;
  height: 0px;
  font-size: 25px;
  margin-top:100px;
  margin-left: 55%;
}
 
@keyframes fuwafuwa {
  0% {
    transform:translate(0, 0) rotate(-7deg);
  }
  50% {
    transform:translate(0, -7px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(7deg);
  }
}

.fuwafuwa3 {
  animation: fuwafuwa 2s ease-in-out infinite alternate;
  background: url(../img/ico-apple.svg) no-repeat center center / 60px auto;
  display: inline-block;
  transition: 1.5s ease-in-out;
  width: 700px;
  height: 100px;
  font-size: 30px;
  margin-top:100px;
  margin-left: 15%;
}
 
@keyframes fuwafuwa {
  0% {
    transform:translate(0, 0) rotate(-7deg);
  }
  50% {
    transform:translate(0, -7px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(7deg);
  }
}

.fuwafuwa4 {
  animation: fuwafuwa 4s ease-in-out infinite alternate;
  background: url(../img/ico-apple.svg) no-repeat center center / 60px auto;
  display: inline-block;
  transition: 1.5s ease-in-out;
  width: 700px;
  height: 100px;
  font-size: 25px;
  margin-top:150px;
  margin-left: 50%;
}
 
@keyframes fuwafuwa {
  0% {
    transform:translate(0, 0) rotate(-7deg);
  }
  50% {
    transform:translate(0, -7px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(7deg);
  }
}
.m1 {
    margin-top: 600px;
    margin-left: 10%;
    width: 40%;
    height: 0%;
    height: 300px;      /* 高さを指定 */
 
}


.n1 {
    margin-top: -130px;
    margin-left: 30%;
    width: 50%;
    height: 0%;
    height: 600px;      /* 高さを指定 */
}


.c1 {
    margin-top: -350px;
    margin-left: 5%;
    width: 60%;
    height: 0%;
    height: 900px;      /* 高さを指定 */
}
.b1 {
    margin-top: -700px;
    margin-left: 35%;
    width: 60%;
    height: 0%;
    height: 900px;      /* 高さを指定 */
}



.a6 {
    color: rgb(255, 0, 0);
    font-size: 100px;
   font-family: "Arial Black";
    position: absolute; /* 背景の位置を調整可能にする */
   /* ページの上部に配置 */
   margin-top: 10%;
    left: 70%; /* 横方向の中央に配置 */
    transform: translateX(-50%); /* 左方向に50%移動して中央揃え */
}

.fade-in {
  margin-left: 3%;
  margin-top: 20%;
  opacity: 0;
  transform: translateY(300px);
  transition: opacity 0.6s ease-out, transform 1.0s ease-out;
}


.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}


.container {
  display: flex;
  justify-content: center; /* 子要素を中央揃え */
  gap: 10px; /* 要素間のスペース */
}
.box10, .box11 .box12 .box13{
  margin: 0; /* 不要なマージンを削除 */
}
.container {
  margin-top: -400px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px; /* 要素間のスペース */
}

.box10
{
  cursor: pointer;
  height: 400px;
  margin-left:-25%;
  margin-top: 500px;
  transform-style: preserve-3d;
  transition: transform 0.7s;
  width: 400px;
  position: relative; /* 必要に応じて */
}

 .box11 {
  cursor: pointer;
  height: 300px;
  margin-top: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.7s;
  width: 300px;
  position: relative; /* 必要に応じて */
}
.box12 {
  cursor: pointer;
  height: 270px;
  margin-top: 300px;
  margin-left: -300px;
  transform-style: preserve-3d;
  transition: transform 0.7s;
  width: 270px;
  position: relative; /* 必要に応じて */
}

.box13 {
  cursor: pointer;
  height:350px;
  margin-top: 1200px;
  margin-left: -44%;
  transform-style: preserve-3d;
  transition: transform 0.7s;
  width: 350px;
  position: relative; /* 必要に応じて */
}
.box10 img, .box11 img, .box12 img, .box13 img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  height: auto;
  left: 0;
  position: absolute;
  width: 100%;
}

.box10 img:last-of-type, .box11 img:last-of-type,
.box12 img:last-of-type, .box13 img:last-of-type {
  transform: rotateY(180deg);
}

.box10:hover, .box11:hover, .box12:hover, .box13:hover{
  transform: rotateY(180deg);
}

