/* CSSのデフォルト設定をリセット */
/* CSSリセット（デフォルト設定をリセット） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow: hidden;
  /* 全体的にスクロール無効 */
  height: 100%;
}

body {
  line-height: 1.5;
  font-family: Arial, sans-serif;
}

/* リンクのデフォルト設定をリセット */
a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ボタンのデフォルトスタイルをリセット */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* リセット設定ここまで */

/* カルーセル設定ここから */
.carousel-container {
  display: flex;
  gap: 20px;
  margin-top: 60px;

}

.carousel {
  position: relative;
  overflow: hidden;
  /* background: #222; */
  border-radius: 10px;
}

.left-carousel {
  width: 250px;
  height: 250px;
}

.right-carousel {
  width: 100px;
  height: 250px;
}

.carousel-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-in-out;
}

.left-carousel .carousel-track {
  flex-direction: row;
}

.carousel img {
  width: 80%;
  height: auto;
  object-fit: cover;
}

.right-carousel img {
  width: 60%;
}

.back_position {
  margin-left: 30px;
}

/* ボタンのデザイン */
.carousel::before,
.carousel::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  /* background: rgba(0, 0, 0, 0.5); */
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

.left-carousel::before {
  left: 10px;
}

.left-carousel::after {
  right: 10px;
}

.right-carousel::before {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.right-carousel::after {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

/* カルーセル設定ここまで */

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #000;
}

/* 固定ヘッダー */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #00493f;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* ヘッダーを最前面に配置 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  /* 視覚的に浮いて見える影を追加 */
}

/* メインコンテンツエリア */
main {
  margin-top: 60px;
  /* ヘッダーの高さ分調整 */
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  /* ヘッダー+フッターの高さを除外 */
}

.custom-image {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
}


/* 下部セクション */
.bottom-section {
  flex: 1;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  padding-bottom: 25px;
  background: #444;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 5px;
  text-align: center;
  align-content: center;
  width: 98vw;
}

button {
  width: auto;
  height: auto;
  padding: 10px;
  font-size: 16px;
  background: linear-gradient(to bottom right, #555555, #888);
  /* グラデーションを追加 */
  color: #fff;
  border: none;
  border-radius: 5px;
  border: 2px solid #2cac96;
  /* 縁取りを追加 */
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  /* フレックスボックスでアイコンとテキストを横並びに配置 */
  align-items: center;
  /* 垂直方向を中央揃え */
  justify-content: space-between;
  gap: 5px;
  /* アイコンとテキストの間のスペース */
}

button:hover {
  border: 2px solid #42ffe0;
}
/* button:hover {
  background: linear-gradient(to bottom right, #666, #999);
  border-color: #ccc;
} */

/* アイコンのスタイル */
button .icon {
  width: 35px;
  /* アイコンの幅 */
  height: 35px;
  /* アイコンの高さ */
  object-fit: contain;
  /* 画像を比率を保ったまま収める */
  background-color: #888;
  border-radius: 5px;
  border: 1px solid #fff;
  /* 縁取りを追加 */
}

/* テキスト部分のスタイル */
button .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.extra-text span {
  color: #ffffff;
  background-color: #666;
  height: 15px;
  width: 50px;
  text-align: left;
  font-style: italic;
  font-weight: bold;
  text-shadow:
    1px 1px 0px black,
    /* 上と右に黒い影 */
    -1px -1px 0px black,
    /* 下と左に黒い影 */
    1px -1px 0px black,
    /* 右と下に黒い影 */
    -1px 1px 0px black;
  /* 左と上に黒い影 */
}

button .extra-text {
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* 英語部分のスタイル */
button .english {
  background-color: unset;
  height: 20px;
  width: 100%;
  font-size: 8px;
  text-transform: uppercase;
  /* 大文字に統一 */
  text-shadow:
    1px 1px 0px black,
    /* 上と右に黒い影 */
    -1px -1px 0px black,
    /* 下と左に黒い影 */
    1px -1px 0px black,
    /* 右と下に黒い影 */
    -1px 1px 0px black;
  /* 左と上に黒い影 */
}

/* 日本語部分のスタイル */
button .japanese {
  background-color: unset;
  height: 30px;
  width: 100%;
  font-weight: bold;
  font-size: 10px;
  color: #ddd;
  /* 少し薄い色を指定 */
  text-shadow:
    1px 1px 0px black,
    /* 上と右に黒い影 */
    -1px -1px 0px black,
    /* 下と左に黒い影 */
    1px -1px 0px black,
    /* 右と下に黒い影 */
    -1px 1px 0px black;
  /* 左と上に黒い影 */
}

/* 固定フッター */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.footer-buttons {
  display: flex;
  justify-content: space-between;
  width: 300px;
}

.circle-button {
  width: 40px;
  /* ボタンの幅 */
  height: 40px;
  /* ボタンの高さ */
  border-radius: 50%;
  /* ボタンを丸くする */
  background-color: #000000;
  /* 背景色なし */
  background-size: cover;
  /* アイコン画像をボタン全体に拡大縮小 */
  background-position: center;
  /* 中央に配置 */
  background-repeat: no-repeat;
  /* 繰り返さない */
  /* border: 2px solid #ccc; ボタンの枠線 */
  cursor: pointer;

  font-size: 10px;
  font-weight: bold;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  position: relative;
}

.circle-button span {
  font-size: 8px;
  top:11px; 
  left:0px;
  margin-right: 10px;
  position: absolute;
  bottom: 5px;
  width: 100%;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}


.circle-button img {
  width: 70%;
  /* アイコン画像の幅を調整 */
  height: 70%;
  /* アイコン画像の高さを調整 */
  object-fit: cover;
  /* 画像の比率を保ちながら収める */
}

/* .circle-button:hover {
  background: #666;
} */

section {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  overflow: hidden;
}

section .signin {
  position: absolute;
  width: 400px;
  background: #222222bb;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

section .signin .content {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 40px;
}

section .signin .content h2 {
  font-size: 2em;
  color: #00493f;
  text-transform: uppercase;
}

section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(#000, #42ffe0, #000);
  animation: animate 7s linear infinite;
}

@keyframes animate {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

section span {
  position: relative;
  display: block;
  width: calc(6.25vw - 2px);
  height: calc(6.25vw - 2px);
  background: #181818;
  z-index: 2;
  transition: 0.5s;
}

/* section span:hover {
  background: #fff;
  transition: 0s;
} */

/* .bottom-section span:hover {
  background: none;
} */

/* スライドインページのスタイル */
.slide-page {
  position: fixed;
  top: 0;
  left: 100%;
  /* 最初は画面外に配置 */
  width: 100%;
  height: 100%;
  background-color: white;
  transition: left 0.5s ease;
  z-index: 1000;
  padding: 20px;
  flex-direction: column;
  /* コンテンツとボタンを縦に並べる */
  overflow: auto;
  /* スクロールを有効にする */
}

/* 戻るボタンのスタイル */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
}

/* スライドイン時の位置 */
.slide-in {
  left: 0;
}

/* メインコンテンツのエリア */
#content-area {
  margin-top: 60px;
  /* ヘッダー部分 */
  font-size: 20px;
}

/* ボタングリッドのスタイル */
.bottom-section .button-grid {
  /* display: flex; */
  justify-content: space-around;
  margin-top: 20px;
}

.bottom-section .button-grid button {
  padding: 10px 20px;
  font-size: 16px;
}

/* ここからスライドインのスタイル */

/* スライドインページのスタイル */
.slide-page {
  position: fixed;
  top: 0;
  left: 100%;
  /* 最初は画面外に配置 */
  width: 100%;
  height: 100%;
  background-color: white;
  transition: left 0.5s ease;
  z-index: 1000;
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* コンテンツとボタンを縦に並べる */
}

/* スライドイン時の位置 */
.slide-in {
  top: 50px;
  left: 0;
  padding-bottom: 60px;
}

/* メインコンテンツのエリア */
#content-area {
  font-size: 20px;
  margin-top: 20px;
  padding-bottom: 60px;
  /* 戻るボタンとの間にスペースを作る */
}

/* コンテンツ内の画像スタイル */
#content-area img {
  width: 100%;
  max-width: 400px;
  margin: 10px 0;
  display: block;
}

/* 画像とコンテンツを交互に配置 */
.content-image-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 画像とコンテンツを交互に並べるためのスタイル */
.content-image-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}


/* 戻るボタンのスタイル */
.back-button {
  /* position: absolute; */
  bottom: 20px;
  /* 画面下部に固定 */
  left: 50%;
  /* 横中央に配置 */
  transform: translateX(-50%);
  /* 50%移動して完全に中央に */
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

/* ボタングリッドのスタイル */
.bottom-section .button-grid {
  justify-content: space-around;
  margin-top: 20px;
}

.bottom-section .button-grid button {
  padding: 10px;
  font-size: 16px;
}

.background-container {
  width: 100%;
  /* 必要に応じて調整 */
  height: 200px;
  /* 必要に応じて調整 */
  background-size: cover;
  /* 画像のサイズをカバーに設定 */
  background-position: center;
  /* 画像の位置を中央に */
  margin-bottom: 15px;
  /* 画像間のスペース */
}

.background-container {
  width: 100%; /* 横幅いっぱいに広げる */
  height: auto; /* 高さはコンテンツに応じて調整 */
  min-height: 200px; /* 画像が小さすぎる場合の最低高さ */
  background-size: cover; /* 画像をコンテナにフィットさせる */
  background-position: center; /* 画像を中央配置 */
  background-repeat: no-repeat; /* 画像の繰り返しを防ぐ */
  padding: 20px 0 400px 0;
  margin-bottom: 10px;
}


#content-area {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center; 
  justify-content: flex-start;
  text-align: center;
  min-height: 100vh; 
  margin: 50px 0 300px 0;
}

#content-area p{
text-align: left;
}

.apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 25px;
  background: linear-gradient(135deg, #ff7e5f, #feb47b); /* グラデーション */
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50px; /* 丸みのあるデザイン */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.apply-button::before {
  content: "🚀"; /* ロケットのアイコンを追加 */
  font-size: 20px;
  margin-right: 10px;
}

.apply-button:hover {
  background: linear-gradient(135deg, #ff6a4d, #ffa07a);
  transform: translateY(-3px); /* ホバー時に少し浮く */
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

/* スライドインのスタイルここまで */

/* テーブルスタイルここから */
table {
  font-size: 12px;
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
table, th, td {
  width: auto;
  border: 1px solid #ddd;
}
th, td {
  padding: 8px 12px;
  text-align: left;
}
th {
  background-color: #f2f2f2;
}
/* テーブルスタイルここまで */

@media (max-width: 900px) {
  section span {
    width: calc(10vw - 2px);
    height: calc(10vw - 2px);
  }
}

@media (max-width: 600px) {
  section span {
    width: calc(20vw - 2px);
    height: calc(20vw - 2px);
  }
}

@media (min-width: 900px) {
  main {
    margin: 180px 0 180px 0;
  }

  section span {
    width: calc(10vw - 2px);
    height: calc(10vw - 2px);
  }

  section .signin {
    width: 550px;
  }

  .bottom-section {
    width: 500px;
    flex: 0;
  }

  button {
    width: 240px;
    height: 100px;
  }

  .carousel-container {
    display: flex;
    gap: 100px;
  }
}


@media (min-width: 414px) {
  main {
    margin: 300px 0 200px 0;
  }

  .bottom-section {
    flex: 0;
  }

  section .signin {
    width: 530px;
  }
  .carousel-container {
  justify-content: center;
  }

  .bottom-section {
    width: 500px;
    flex: 0;
  }
}

@media (min-width: 375px) {
  main {
    margin: 300px 0 200px 0;
  }

  .bottom-section {
    flex: 0;
  }

  section .signin {
    width: 530px;
  }

  .bottom-section {
    width: 400px;
    flex: 0;
  }
}

@media (min-width: 374px) {
  main {
    margin: 80px 0 200px 0;
  }
}

@media (min-width: 390px) {
  main {
    margin: 300px 0 200px 0;
  }
}
@media (min-width: 360px) {
  main {
    margin: 100px 0 200px 0;
  }

  .bottom-section {
    flex: 0;
  }

  section .signin {
    width: 530px;
  }

  .bottom-section {
    width: 400px;
    flex: 0;
  }
}



@media (min-width: 1000px) {
  main {
    margin: 230px 0 180px 0;
  }
  .bottom-section {
    width: 500px;
  }
  .bottom-section button{
    height: 80px;
  }
  #content-area {
    margin: 0 0 0 0;
  }

  .background-container{
    width: 40%;
  }
  button .japanese {
    font-size: 16px;
  }
  button .english {
    font-size: 12px;
  }

  .footer-buttons {
    width: 430px;
  }
}

@media (min-width: 1600px) {
  .bottom-section button{
    height: 100px;
  }
}