@charset "UTF-8";

/* pcファーストで作成 */

/* -----共通----- */
body{
    color: #333;
}


h2{
  width: 100%;
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 5px;
  font-family: 'Peralta', cursive;
}

/* -----header----- */

header{
    display: table;
    background-image: url(img/favorite.JPG);
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
}
header .fadeInAnime{
    display: table-cell;
    vertical-align: middle;
    font-family: 'Peralta', cursive;
    font-size:48px;
    text-align: center;
    color:#333;
    height: fit-content;
    animation-name: fadeInAnime;
    animation-duration:3s;
    animation-fill-mode:forwards;
    opacity: 0;
}

header nav{
  display: table-cell;
  vertical-align: middle;
  height: fit-content;
  text-decoration: none;
}

@keyframes fadeInAnime{
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#news{
  max-width: 600px;
  margin: 0 auto;
}

#news .news-dl{
  display: flex;
  flex-wrap: wrap;
}

#news .news-dl dd{
  width: 20%;
  height: 40px;
  border-bottom: solid 1px #333;
  margin: 0;
  padding-left: 5px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 40px;
}

#news .news-dl dt{
  width: 77%;
  height: 40px;
  padding-left: 5px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: solid 1px #333;
  line-height: 40px;
}

/* -----about me----- */
#about-category{
    width: 600px;
    margin: 0 auto;
}

.container {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr 1fr; 
    grid-template-rows: 150px; 
    gap: 0px; 
    grid-template-areas: 
      "box-whit box-brown box-whit2 box-brown2"; 
  }

.fontweight{
    font-weight: bold;
}

  .box-whit {
    display:table;
    grid-area: box-whit;
    border-color: #333;
    border: 1px solid;
    text-align: center;
}
  .box-brown {
    display:table;
    grid-area: box-brown;
    text-align: center;
    background-color: #333;
    color: #fff;
}
  .box-whit2 {
    display:table;
    grid-area: box-whit2;
    border-color: #333;
    border: 1px solid;
    text-align: center;
}
  .box-brown2 {
    display:table;
    grid-area: box-brown2;
    text-align: center;
    background-color: #333;
    color: #fff;
}

.content{
    display: table-cell;
    vertical-align: middle;
    line-height:normal;
}

/* -----this site----- */
  #this-category{
    width: 600px;
    margin: 0 auto;
  }

  #this-category p{
    margin-top: 5px;
  }

  /* -----footer----- */
  footer{
    margin-top:30px;
    margin-bottom: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
  }


  /* ☆☆☆☆☆レスポンシブ　設定☆☆☆☆☆ */
  @media screen and (max-width: 480px) {
    /* 480px以下に適用されるCSS（スマホ用） */
/* -----about me----- */
#about-category{
  width: 320px;
  margin: 0 auto;
  padding: 5px;
}

.container {
  display: grid; 
  grid-template-columns: 100%; 
  grid-template-rows: 1fr 1fr 1fr 1fr; 
  gap: 5px 5px; 
  grid-template-areas: 
    "box-whit"
    "box-brown"
    "box-whit2"
    "box-brown2"; 
}
.box-whit { grid-area: box-whit; }
.box-brown { grid-area: box-brown; }
.box-whit2 { grid-area: box-whit2; }
.box-brown2 { grid-area: box-brown2; }

#this-category{
  width:320px;
  margin: 0 auto;
}

#news .news-dl{
  display: block;
}

#news .news-dl dd{
      width: 20%;
    height: 40px;
    border-bottom: none;
    margin: 0;
    padding-left: 5px;
    padding-top: 10px;
    padding-bottom: 0px;
    line-height: 40px;
}

#news .news-dl dt{
  padding-top: 0;
  width: 98%;
  margin: 5px auto; 
}
}