@charset "utf-8";

/*ヘッダーとフッターのcss読み込み*/
@import url("style.css");

/*メイン*/
.top-hero-img {
  height: 60vh;
  width: 100%;
  object-fit: cover;
  margin: auto;
}

#top-logo-img {
  height: 15vh;
  margin: 35px auto;
}

.scroll {
  font-size: 13px;
  text-align: center;
}

/*スクロールアニメーション*/
.scroll_down {
  width: 1px;
  height: 7vh;
  background-color: #333;
  margin: 0 auto 10px;
  animation: scrolldown 2s ease infinite;
}

@keyframes scrolldown {
  0% {
    transform-origin: top;
    transform: scaleY(0);
  }

  45% {
    transform-origin: top;
    transform: scaleY(1);
  }

  55% {
    transform-origin: bottom;
    transform: scaleY(1);
  }

  100% {
    transform-origin: bottom;
    transform: scaleY(0);
  }
}

/*ローディングアニメーション*/
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background-color: #f6f4ee;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 1.5s 3.5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.loading_logo {
  opacity: 0;
  animation: logo_fade 3.5s 0.5s forwards;
  width: 120px;
}

@keyframes logo_fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  60% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
  }
}

/*ファーストビューをフェードイン*/
.pc_top {
  animation: topAnimation 2s forwards;
}

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

  100% {
    opacity: 1;
  }
}

/*AboutとMenuの画像配置*/
.flex_img {
  margin-top: 120px;
  margin-bottom: 60px;
  padding: 0;
  list-style-type: none;
  display: flex;
  gap: 4vw;
}

.flex_img li:nth-child(2) {
  position: relative;
  top: 20px;
}

/*項目の大まかなレイアウト調整*/
h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 30px;
}

h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
}

.view_more {
  text-align: center;
  margin-top: 30px;
}

.view_more a {
  color: #333;
  text-underline-offset: 10px;
}

/*Profile*/
#profile-img,
#exterior-img {
  margin-top: 120px;
  margin-bottom: 50px;
}

#name {
  font-size: 14px;
  text-align: center;
}

#name p:nth-child(2) {
  font-size: 21px;
  margin-bottom: 20px;
}

/*Info*/
table {
  width: 100%;
}

table tr th {
  text-align: left;
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 10px;
}

table tr td {
  padding-top: 10px;
  padding-bottom: 40px;
}

table tr td span {
  color: red;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
}

#google-map {
  width: 100%;
  margin-bottom: 120px;
}

#google-map iframe {
  width: 100%;
  height: 300px;
}

/*Diary*/
.diary div:nth-child(n+3) {
  display: none;
}

.diary {
  width: 85vw;
  margin: auto;
  margin-top: 50px;
  display: flex;
  gap: 8vw;
}

.diary_item {
  text-align: center;
}

.diary_item a {
  text-decoration: none;
  color: #333;
}

/*スクロールすると画像がフェードイン*/
.content_about,
.content_menu,
.content_prof,
.content_info {
  transform: translateY(100px);
  transition: 1.5s;
  opacity: 0;
  visibility: hidden;
}

.is_active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/*以下PC用のcss*/
@media screen and (min-width: 850px) {
  .pc_top {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .top-hero-img {
    height: 80vh;
    width: 45vw;
    margin-top: 10%;
  }

  .pc_top2 {
    margin-left: 19%;
    margin-top: 10%;
  }

  .scroll {
    position: relative;
    top: 90px;
  }

  .content_about {
    display: flex;
    align-items: center;
    gap: 6%;
    margin-top: 100px;
  }

  .content_about2 {
    flex-basis: 120%;
  }

  .content_menu {
    display: flex;
    align-items: center;
    gap: 5%;
    margin-top: 60px;
    flex-direction: row-reverse;
  }

  .content_menu2 {
    flex-basis: 120%;
  }

  #profile-img {
    width: 25vw;
    margin: 200px auto 50px;
  }

  #pc-prof {
    width: 60%;
    margin: 40px auto;
  }

  .content_info {
    display: flex;
    align-items: center;
    gap: 10%;
    margin-top: 200px;
    margin-bottom: 50px;
  }

  .content_info1 {
    flex-basis: 40%;
    margin-left: 10%;
    position: relative;
    top: -50px;
  }

  table tr th {
    padding-bottom: 5px;
  }

  table tr td {
    padding-top: 5px;
    padding-bottom: 30px;
  }

  #google-map {
    text-align: center;
    margin-bottom: 200px;
  }

  #google-map iframe {
    width: 80%;
    height: 400px;
  }

  .diary div:nth-child(n+3) {
    display: block;
  }

  .diary {
    width: 80vw;
    margin-top: 80px;
  }

  .diary_item p {
    margin-top: 10px;
  }

  .diary_item img {
    transition: 0.5s;
  }

  .diary_item a:hover img {
    transform: scale(1.2, 1.2);
    transition: 0.5s;
  }

  .diary_img {
    overflow: hidden;
  }

  .view_more {
    margin-top: 60px;
    transition: 0.5s;
  }

  .view_more:hover {
    letter-spacing: 0.2em;
    transition: 0.5s;
  }

}