:root {
  --black: #3A3c4C;
  --blue: #3F83A6;
  --gray: #D8D6DE;
  --red: #B9505A;
  --white: #F4F3F6;
  --accent-navy: #2D4262;
  --silver: #BDB8C9;
}

* {
  /* margin: 0;
  padding: 0;
  box-sizing: border-box; */
  /* border: #ff0000 1px solid; */
}

body {
  width: 100%;
  height: auto;
  background: var(--white);
  color: var(--black);
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

img{
   vertical-align: top
}

a {
  color: var(--black);
  text-decoration: none;
}

.center {
  text-align: center;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto 100px;
  /* padding-top: 100px; */
  display: flex;
  flex-direction: column;
  gap: 100px;

  @media screen and (max-width: 800px) {
    margin-top: 0;
  }
}

/*********************************
    メインビジュアル
*********************************/
#imageStock{
  display: none;
}
.tile-grid {
  display: grid;
  /* grid-template-rows: repeat(2, 1fr); */
  /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
  width: 90%;
  margin: 20px auto;

  @media screen and (max-width: 800px) {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    overflow: visible;
  }
}

.tile {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  /* フェードの速度 */
  /* transition: opacity 1s ease-in-out;  */
  transition:
    opacity 1.2s ease,
    transform 2s ease;
}

.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.copy {
  text-align: center;
}

.copy h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 4rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--accent-navy);

  
  @media screen and (max-width: 800px) {
    font-size: 3rem;
  }
}

.copy p {
  opacity: 0.7;
  font-size: 0.875rem;
  /* color: var(--gray); */
}


/*********************************
    一覧
*********************************/
.info{
  margin-bottom: 50px;
}

/*-------------　全体 グリッド設定　-------------*/
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 40px;

  /* カードの高さを自動で揃える */
  align-items: stretch;
}

.card-grid a{
  display: flex;
}

/* カード全体 */
.card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* ホバー */
.card:hover {
  transform: translateY(-5px); /* 少し浮かせる */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* 影を広げる */
}


/*-------------　カードヘッダー　-------------*/

.card-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*  番号 */
.number {
  font-size: 2rem;
  color: var(--gray);
}

/*  ステータス */
.status-label{
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--white);
  /* font-weight: bold; */
}

.updating {
  background: var(--red);
} 

.paused {
  background: var(--blue);
} 

.stop{
  background: var(--silver);
}


/*-------------　イメージ画像　-------------*/
.thumb {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ホバー */
.card:hover .thumb img {
  transform: scale(1.1); /* 枠内で拡大 */
}


/*-------------　カードコンテンツ　-------------*/
.card-content{
  flex: 1;
  margin-bottom: 15px;
}

/*  カテゴリーラベル */
.category {
  display: flex;
  gap: 8px;
}
.category span {
  font-size: 0.8rem;
  background: var(--gray);
  padding: 2px 8px;
  border-radius: 4px;
}

/*  タイトル */
.title {
  margin: 5px 0;
  color: var(--accent-navy);
}

/* 説明文 */
.desc {
  font-size: 0.875rem;
  flex-grow: 1;
}

/*-------------　カードフッター　-------------*/

.card-footer {
  /* カード下部に固定 */
  margin-top: auto; 
}

/*  ジャンル */
.genre {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
}

.genre-label {
  font-size: 0.875rem;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
  height: max-content;
}

.general {
  color: #141414;
}

.special {
  color: var(--red);
  border-color: var(--red);
}

.genre-name {
  font-size: 0.875rem;
  flex: 1;
}

/*  作成方法 */
.method-text {
  text-align: right;
  font-size: 0.875rem;
  color: var(--silver);
  padding-top: 5px;
  border-top: var(--silver) 1px solid;
}



/*********************************
    ログ
*********************************/
.activity {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: center;
  padding: 50px;
  background: var(--accent-navy);
  color: var(--white);
  border-radius: 10px;
}

.activity-label{
  color: var(--gray);
}

.activity-text h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}


/*-------------　スライド　-------------*/
.activity-slider {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  /* aspect-ratio: 4 / 3; */

  object-fit: cover;
  display: block;

  transform: scale(1);
  transition: transform 6s linear;
}

.swiper-slide-active img {
  transform: scale(1.1);
}

@media (max-width: 1000px) {

  .activity {
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100vw;
   margin: 0 calc(50% - 50vw);
   padding: 10%;
   border-radius: 0;
  }
}

/* オーバーレイ */
.swiper-slide {
  position: relative;
}

.swiper-slide::after {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0.1);
}


/*********************************
    フッター
*********************************/
footer {
  width: 100%;
  text-align: center;
  padding: 1rem;
  border-top: var(--gray) solid 1px;

  & p{
    font-size: 0.875rem;
  }

  & img{
    width: 30px;
    height: auto;
    transition: transform 0.3s;
    margin: 20px 0 5px;
  }

  & a:hover img {
  transform: scale(1.2);
}
}

.logo{
  gap: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wave{
  width: 50px;
  height: auto;
}


/*********************************
    404
*********************************/
.error{
  margin-top: 100px;
}
.button a {
    background: var(--accent-navy);
    border-radius: 50px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 50px auto;
    max-width: 260px;
    padding: 10px 25px;
    color: var(--white);
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.button a:hover {
    background: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: var(--accent-navy);
}
.footer_404{
  position: fixed;
  left: 0;
  bottom: 0;
}