@charset "UTF-8";

@font-face {
  font-family: 'にくまる';
  src: url('fonts/07にくまるフォント.otf') format('truetype');
}

@font-face {
  font-family: 'キウイ丸';
  src: url('fonts/KiwiMaru-Regular.ttf') format('truetype');
}

/***************************************************
装飾
***************************************************/
/****************カラー****************/
body {
  background-color: #e6eef6;
}

header,footer {
  background-color: #819db7;
}

#header_nav li {
  color: #545454;
}

#header_nav a,
#footer_nav a,
.kainushi_background p {
  color: #fff;
}

.back_white {
  background-color: #fff;
}

h2,h3,p,dt,dd {
  color: #545454;
}

h4,
.link a,
.animals_link_todetail {
  color: #809cb6;
}

.mini-card {
  background-color: #fff;
}

.back_blue {
  background-color: #b8d2df;
}

/*---かい主ページ---*/
.kainushi_background {
  background-color: #819db7;
}

.kainushi_profile {
  background-color: #fff;
}

/****************装飾****************/
#header_nav a {
  padding-bottom: 10px;
  border-bottom: 1.5px solid #fff;
}

#header_nav a:hover {
  color: gray;
  border-bottom: 3px double #fff;
}

#footer_nav a:hover {
  color: gray;
  border-bottom: 2px solid gray;
}

.link a {
  font-size: large;
  font-weight: bolder;
  color: #fff;
  border-bottom: 5px dotted #FCB3B7;
}
.section_animals .link a {
  font-size: larger;
  font-weight: bolder;
  color: #FCB3B7;
  border-bottom: 5px dotted #fff;
}

.link a:hover {
  border-bottom: 5px double #FCB3B7;
}

.link a,
.section_animals .link a {
  padding-bottom: 3px;
}

.animals_link_todetail {
  font-weight: bold;
}

.animals_link_todetail a:hover {
  color: #FCB3B7;
  border-bottom: 3px double ;
}

/***************************************************
文字
***************************************************/
/****************フォント****************/
header,footer,h2,h3,h4 {
  font-family: 'にくまる';
}

p,dt,dd,
.cage_frame1 h4,
.cage_frame2 h4 {
  font-family: 'キウイ丸';
}

/****************文字サイズ****************/
h2 {
  font-size: xx-large;
}

h3 {
  font-size: x-large;
}

dt,dd,h4,header,.animals_link_todetail {
  font-size: large;
}

p {
  font-size: medium;
}

/***************************************************
配置・余白
***************************************************/
header,body {
  max-width: 100%;
  width: 100vw;
}

/*---ページトップへ---*/
.to-top {
  width: 80px; /*ボタンの見た目*/
  height: 80px;
  border-radius: 50%;
  background-color: #819db7;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  position: fixed; /*画面の右下に固定*/
  right: 15px;
  bottom: 15px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;

}
.to-top a {
  width: 50px;
  height: 50px;
}
.to-top:hover {
  transform: translateY(-5px);
}

/**************ホーム**************/
/*---ヘッダー・フッター---*/
header {
  display: flex;
  justify-content: space-between;
}

h1 {
  margin: 0.5em 0 0.5em 0.5em;
}

#header_nav ul {
  display: flex;
  justify-content: space-around;
  margin: 0.5em 0 0.5em 0.5em;
}

#header_nav li {
  padding: 1em;
}

.footer_sns {
  display: flex;
  justify-content: end;
}

.footer_sns li {
  text-align: center;
  margin-right: 10px;
  padding-top: 0.5em;
  width: 10%;
}

.footer-sns img {
  padding-top: 10px;
}


.footer_sns img {
  max-width: 50%;
}

#footer_nav li {
  padding: 0.2em;
  text-align: center;
}

#copyright {
  text-align: center;
  padding: 2em 1em 2em 1em;
  color: #fff;
}

/*---section---*/
h2,h3,h4 {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 10px;
}

.typewriter {
  width: 17ch;
  animation: typing 3s steps(24), effect .5s step-end infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}
.typewriter::after {
  content: "|";
  display: inline-block;
  animation: blink 0.7s infinite alternate;
}
@keyframes blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}


.main_visual {
  text-align: center;
}

/*---About---*/
.back_blue {
  max-width: 90%;
  width: 90%;
  margin-left: 5%;
  margin-bottom: 5%;
  border-radius: 1em;
  height: 30%;
  padding-bottom: 5px;
}

.back_blue p {
  padding: 3%;
}

.three {
  position: absolute;
  right: 0;
  top: 110vh;
}

/*---ふわふわ浮かせる---*/
.three {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5%);
  }
}

/*---Link---*/
.back_white {
  max-width: 100%;
  width: 60%;
  margin: auto;
  padding: 1%;
  border-radius: 1em;
}

.back_white p {
  padding: 2%;
}

.ribon {
  max-width: 100%;
  width: 100vw;
  margin-top: 2em;
  margin-bottom: 3em;
  text-align: center;
  overflow: hidden;
}

/*---Animals---*/
.animals {
  max-width: 90%;
  margin: 3% 5% 0 5%;
}

.home_container {
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.home_container li {
  width: 30%;
}

.sns_icon {
  width: 90%;
  margin: auto;
  padding: 0.5em;
}

.mini-card {
  max-width: 100%;
  margin: 1% 5% 1% 5%;
  border-radius: 1em;
}

.link {
  padding-top: 10px;
  text-align: center;
}

.footer_container p {
  display: flex;
}

/*---ふわふわ---*/
.animals_link_todetail {
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(20%);
  }
  50% {
    transform: translateX(0%);
  }
}


/*---前に出る---*/
.animals_link_todetail {
  transition-radius: 0.4s;
}
.animals_link_todetail:hover {
  transform: scale(1.1);
}

/**************かい主ページ**************/
.kainushi_container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.kainushi_background {
  max-width: 100%;
  height: 50%;
  display: flex;
  padding: 1.5em;
  justify-content: center;
  align-items: center;
  margin-left: 3em;
  border-radius: 2em;
}

.kainushi_background p {
  line-height: 20px;
}

.kainushi_profile {
  width: 50%;
  margin-left: 25%;
  margin-bottom: 3em;
  border-radius: 2em;
}

.kainushi_profile_list {
  display: flex;
  text-align: left;
}

.kainushi_profile_list dt {
  text-align: right;
  width: 50%;
  padding: 0.8em;
}

.kainushi_profile_list dd {
  width: 10em;
  margin-left: 2em;
  padding: 0.8em;
}

/**************動物ページ**************/
.animals_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: 1em auto 3em auto;
}

.animals_container_left {
  background-color: #fff;
  border-radius: 2em;
  width: 40%;
  max-width: 300px;
}

.animals_container_left img {
  width: 90%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.animals_container_left h3 {
  color: #809cb6;
}

.animals_container_right {
  background-color: #fff;
  margin-left: 1.5em;
  border-radius: 2em;
  width: 60%;
}

.animals_profile_box {
  margin-bottom: 0.2em;
  margin-top: 0.5em;
}

.animals_profile_list {
  display: flex;
}

.animals_profile_list dt {
  text-align: right;
  width: 30%;
  padding: 0.5em;
}

.animals_profile_list dd {
  width: 70%;
  margin-left: 2em;
  padding: 0.5em;
}

.animals_profile_text {
  margin-left: 10%;
  margin-top: 0.5em;
}

.animals_link_todetail {
  background-color: #809cb6;
  color: #fff;
  width: 200px;
  text-align: center;
  border-radius: 2em;
  margin: 0.5em auto 1em auto;
  padding: 0.5em;
}

/**************動物詳細ページ**************/
.animals_detail_container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.schedule,
.meal,
.cage {
  background-color: #fff;
  border-radius: 2em;
  margin: 0 1.5em 2em 1.5em;
}

.schedule,
.meal {
  width: 50%;
}

.schedule_list {
  display: flex;
}

.schedule_list dt {
  text-align: right;
  width: 20%;
  padding: 0 1.2em 0.8em 0;
  font-size: medium;
}

.schedule_list dd {
  text-align: left;
  width: 80%;
  padding-bottom: 0.8em;
  font-size: medium;
}

.meal_list {
  display: flex;
}

.meal_list dt {
  text-align: right;
  width: 20%;
  padding: 0 1.2em 0.8em 0;
  font-size: medium;
}

.meal_list dd {
  text-align: left;
  width: 80%;
  padding-bottom: 0.8em;
  font-size: medium;
}

.meal_list span {
  font-size: small;
}

.cage {
  width: 90%;
  margin-left: 5%;
  margin-bottom: 3em;
}

.cage_container {
  display: flex;
}

.cage_frame1,
.cage_frame2 {
  border: 2px dotted #819db7;
  background-color: #fff;
  border-radius: 2em;
  text-align: left;
  font-size: medium;
  margin: 0 1em 1.5em 1em;
  width: 50%;
}

.cage_flame_list {
  display: flex;
}

.cage_flame_list dt {
  text-align: right;
  width: 30%;
  padding: 0 1.2em 0.8em 0;
  font-size: medium;
}

.cage_flame_list dd {
  text-align: left;
  width: 70%;
  padding-bottom: 0.8em;
  font-size: medium;
}

.cage_frame1 h4,
.cage_frame2 h4 {
  color: #819db7;
  font-size: x-large;
  font-weight: bold;
  padding-top: 10px;
}

/**************リンクページ**************/
.links_container {
  display: flex;
  justify-content: left;
  width: 80vw;
  margin-left: auto;
  margin-right: auto;
}

.links h3,
.links_other h3 {
  text-align: left;
  margin-left: 3em;
}

.links_list {
  background-color: #fff;
  width: 25vw;
  margin: 0 2%;
  border-radius: 2em;
}

.links_list h4 {
  font-size: x-large;
}

.links_list img {
  width: 60%;
  margin-left: 20%;
}

.links_list p {
  margin: 0.8em 0.5em;
}

.links_other {
  margin-bottom: 3em;
}


/******************************
レスポンシブ
******************************/
@media screen and (max-width: 768px) {
  /***ヘッダー***/
	header {
		flex-direction: column;
		align-items: center;
    overflow: hidden;
}
	#header_nav ul {
		flex-wrap: wrap;
		justify-content: center;
}  
  /***ファーストビュー***/
  .main_visual {
  max-width: 100%;
  width: 100vw;
}
  .main_visual_pic {
  max-width: 100%;
  width: 100vW;
}
  /***About***/
  .back_blue {
  max-width: 90%;
  width: 100vw; 
}
  .back_white {
  max-width: 100%;
  width: 90vw;
  margin: auto;
  padding: 3vw;
}
  .three {
  width: 50vw;
  position: absolute;
  right: -10vw;
  top: 125vh;
}
/***Animals***/
	.home_container {
  display: flex;
  justify-content: center;
}
  .home_container li {
  text-align: center;
}
  .mini-card {
    margin: 0 0.4em 0em 0.4em;
  }
  .animals {
  flex: wrap;
  justify-content: center;
}
  .back_white {
		width: 90%;
}
  /***Links***/
  .sns_icon {
  display: wrap;
  justify-content: center;
  width: 50%;
}
  /***フッター***/
	.footer_sns {
		justify-content: center;
}
	.footer_sns li {
		width: 20%;
}
  #footer_nav {
  margin-top: 30px;
}
.to-top {
  width: 50px; /*ボタンの見た目*/
  height: 50px;
  position: fixed; /*画面の右下に固定*/
  right: 20px;
  z-index: 9999;  
}
.to-top a {
  display: block;
  width: 50px;
  height: 50px;
  justify-content: center;
  align-items: center;
}

  /*かい主*/
.kainushi_container {
  margin-top: 1em;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  width: 90vw;
}
.kainushi_image img {
  width: 70vw;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.kainushi_background {
  margin: 1em auto 0 auto;
  padding: 1em;
}
.kainushi_background P {
 font-size: 14px; 
}

.kainushi_profile {
  width: 90vw;
  margin-left: 1em;
}

/*動物*/
.animals_container {
  margin-top: 1em;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  width: 90vw;
}
.animals_container_left {
  background-color: #e6eef6;
  width: 70vw;
}
.animals_container_left img {
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.animals_container_right {
  width: 85vw;
  margin-left: auto;
  margin-right: auto;
}
.animals_profile_list dt {
  padding: 0.8em 0 0 0;
}
.animals_profile_list dd {
  padding: 0.8em 0 0 0;
  margin-left: 1em;
}
.animals_link_todetail {
  display: block;
  width: 220px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0 5px 10px;
  font-size: medium;
  border-bottom: 3px double #FCB3B7;
}
/*動物詳細*/
.animals_detail_container {
  flex-direction: column;
}
.schedule,
.meal,
.cage {
  width: 90vw;
  padding-bottom: .5em;
}
.schedule h3,
.meal h3 {
  padding-bottomx: 1em;
}
.schedule_list dt {
  text-align: right;
  padding: 0 8px 12px 0;
  font-size: 15px;
}
.schedule_list dd {
  font-size: 14px;
}
.meal_list dt,
.cage_flame_list dt {
  width: 25%;
  text-align: right;
  padding: 0 8px 12px 0;
  font-size: 15px;
}
.meal_list dd,
.cage_flame_list dd {
  width: 75%;
  font-size: 14px;
}
.cage_container {
  flex-direction: column;
}
.cage_frame1,
.cage_frame2 {
  width: 80vw;
}
/*リンク*/
.links h3,
.links_other h3 {
  text-align: center;
  margin: 0;
}

.links_container {
  flex-wrap: wrap;
  width: 80vw;
}

.links_list {
  width: 35vw;
  margin: 0 auto 1em auto;
  padding: 0 1em 1em 1em;
}

.links_list p {
  font-size: smaller;
  margin: 0;
}

.links h4 {
  font-size: large;
}
}