@charset "UTF-8";

/*====================================
  共通部分
  ===================================*/
html {
  font: size 100%;
}

body {
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
  line-height: 1.7;
  color: #6e6e6e;
  animation: fadeIn_img 7s ease 0s 1 normal;
}

h2 {
  text-align: center;
  padding-bottom: 50px;
}

a {
  text-decoration: none;
  color: black;
}

li {list-style: none;}
.txt_big {font-size: 2rem;}
.txt_small {font-size: smaller;}
.txt_center {text-align: center;}

header {
  display: flex;
  justify-content: space-between;
}

.logo {
  width: 210px;
  margin: 30px;
}

.main-nav {
  display: flex;
  font-size: 1.25rem;
  margin: 34px;
  list-style: none;
}
.main-nav li {margin-left: 50px;}

/* 見出し */
.page-title {
  color: #313131;
  font-size: 3rem;
  font-family: 'Philosopher', 'serif';
  text-transform: uppercase;
  font-weight: normal;
}

.to_block {display: block;}

footer {text-align: center;}

/*====================================
  index
  (TOP猫画像をふわっと表示) 
 ===================================*/
#home {
  background-image: url(../images/top.png);
  max-width: 100%;
  min-height: 100vh;
  background-size: cover;
}

@keyframes fadeIn_img {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

.box_area {
  width: 60%;
  display: flex;
  padding-top: 100px;
  padding-left: 200px;
  /*     justify-content: space-around; */
  /*   margin-bottom: 100px; */
}

.box {
  width: 5%;
  /*     aspect-ratio: 3/ 5; */
  font-size: 3rem;
  box-sizing: border-box;
  opacity: 0;
  /* 要素を透過0にする */
}

/* ふわっとレタリング
===================================*/
.fadeUp {
  animation-name: fadeUpAnime;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* アニメーションスタートを１文字ずつ遅らせる
 =======================================*/
.delay-time00 {animation-delay: 2s;}
.delay-time01 {animation-delay: 2.4s;}
.delay-time02 {animation-delay: 2.8s;}
.delay-time03 {animation-delay: 3.2s;}
.delay-time04 {animation-delay: 3.6s;}
.delay-time05 {animation-delay: 4.0s;}
.delay-time06 {animation-delay: 4.4s;}
.delay-time07 {animation-delay: 4.8s;}
.delay-time08 {animation-delay: 5.2s;}
.delay-time09 {animation-delay: 5.6s;}
.delay-time10 {animation-delay: 6.0s;}
.delay-time11 {animation-delay: 6.4s;}
.delay-time12 {animation-delay: 6.8s;}
.delay-time13 {animation-delay: 7.2s;}

/*　エントランスボタン
=======================================*/
.relative {position: relative;}
.delay-time14 {animation-delay: 8s;}
.btn_enter {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-27%);
}
.btn_enter img {
  width: 25%;
  height: 33%;
}

/*====================================
  cats
  (人気Top3猫、その他猫一覧) 
 ===================================*/
.ranking_container {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.rank {
  margin: 10px;
  padding: 10px;
  text-align: center;
}

.shelter {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}

.cat {
  text-align: center;
  padding-bottom: 70px;
}

.img_cat {
  width: 300px;
  height: 300px;
}

.cats p {
  text-align: center;
}

.cats txt_big {
  font-size: 1.5rem;
}

/* 流れる文字用 */
.scrolling-text {
  color: #6e6e6e;
  white-space: nowrap;
  overflow: hidden;
  animation: scrolling 30s linear infinite;
}

@keyframes scrolling {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/*====================================
  contact 
 ===================================*/
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4%;
}

label {
  color: #313131;
}

/* ボタン */
.button {
  font-size: 1.375rem;
  background: rgba(63, 47, 32, 0.945);
  color: #fff;
  border-radius: 5px;
  padding: 18px 32px;
}

.button:hover {
  background: rgba(65, 64, 64, 0.945);
}

.sub-title {
  font-size: 1.375rem;
  padding: 0 8px 8px;
  border-bottom: 2px rgba(63, 47, 32, 0.945);
  font-weight: normal;
}

/* CONTACT
------------------------------------- */
#contact {
  background-image: url(../images/contact-bg.png);
  min-height: 100vh;
}

/* 店舗情報 地図 */
#location {
  padding: 4% 0;
}

#location .wrapper {
  display: flex;
  justify-content: space-between;
}

.location-info {
  width: 22%;
}

.location-info p {
  padding: 12px 10px;
}

.location-map {
  width: 74%;
}

/* iframe */
iframe {
  width: 100%;
}

/* フォーム */
form div {
  margin-bottom: 14px;
}

label {
  font-size: 1.125rem;
  margin-bottom: 10px;
  display: block;
}

input[type="text"],
input[type="email"],
textarea {
  background: rgba(255, 255, 255, .5);
  border: 1px #fff solid;
  border-radius: 5px;
  padding: 10px;
  font-size: 1rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 240px;
}

textarea {
  width: 100%;
  max-width: 480px;
  height: 6rem;
}

input[type="submit"] {
  border: none;
  cursor: pointer;
  line-height: 1;
}

/*====================================
  news
 ===================================*/
 #news,#aboutus{
  width: 1400px;
  margin:0 auto 0 auto;
 }
#news header,
#aboutus header{
  height: 250px;
  background-image: url(../images/news-bg.png);
  margin-bottom: 30px;
}
.news-contents {
  display: flex;
  justify-content: space-between;
}
article{
  width: 75%;
  padding-right:2rem;
}
article p{padding-right: 20px;}
#news article img{
  margin-bottom: 20px;
  width: 90%;
}
aside{width: 25%;}

.post-info {
  position: relative;
  padding-top: 4px;
  margin-bottom: 40px;
}
.post-info h3,.post-cat {
  margin-left: 120px;
}
.post-date {
  background: rgb(72, 24, 24);
  border-radius: 50%;
  color: #fff;
  width: 100px;
  height: 100px;
  font-size: 1.625rem;
  text-align: center;
  position: absolute;
  top: 0;
  padding-top: 10px;
  padding-left: 1rem;
}

.post-date span {
  font-size: 1rem;
  border-top: 1px rgba(255, 255, 255, .5) solid;
  padding-top: 6px;
  padding-left: 0.3rem;
  display: block;
  width: 60%;
  margin: 0 auto;
}

/* 右側 */
#news aside section{
  margin-bottom: 5rem;
}
#news aside section div{
  margin-top: 0.5rem;
}
#news aside section h3{
  font-size: 1.375rem;
  padding: 0 8px 8px;
  border-bottom: 2px rgb(72, 24, 24) solid;
  font-weight: normal;
}
#news aside section p,
#news aside section li{
  padding:0 1rem 0 1rem; 
}
#news aside section li{
  border-bottom: 1px #ddd solid;
}
#news aside section li a{
  color: #432;
  padding: 10px;
}
#news aside section li a:hover{
  color: #0bd
}

/*====================================
  About Us
 ===================================*/
.action_container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.actn_item {
  background-color: #bebcbc;
  padding: 20px;
  border-radius: 3%;
  width: 360px;
}


/* レスポンシブ対応 */
@media (max-width:600px) {

  header {
    flex-direction: column;
    align-items: center;
  }

  article {
    width: 100%;
  }

  aside{
    width: 100%;
  }

  /* --- index --- */
  #home {
    background-image: url(../images/top_mb.jpg);
    max-width: 100%;
    min-height: 100vh;
    background-size: cover;
  }


  /* --- cats --- */
  .ranking_container {
    flex-direction: column;
    align-items: center;
  }

  .ranking_container img {
    height: auto;
  }

  .shelter {
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: center;
  }

  .shelter img {
    height: auto;
  }


  /* --- news --- */
  .news-contents {
    flex-direction: column;
  }

  #news {
    width: 100%;
  }

  #news aside {
    width: 100%
  }

  main img {
    padding-left: 2%;
    margin-bottom: 20px;
    width: auto;
  }

  .logo {
    font-size: 2.5rem;
  }

  /* Header */
  .main-nav {
    font-size: 1rem;
    margin-top: 10px;
  }

  .main-nav li {
    margin: 0 20px;
  }

  /* --- about us --- */
  .action_container {
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: center;
  }

 .to_block {
    width: 100%;
}

/* --- contact --- */
#contact {
  background-image: url(../images/contact-mbbg.png);
  min-height: 100vh;
}

h3{
padding-top: 10%;
}

#location .wrapper {
  flex-direction: column;
  grid-template-columns: 1fr;
}

.location-info {
  width: 100%;
}

.location-info p {
  padding: 12px 10px;
}

.location-map{
text-align: center;
}
}