@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  vertical-align: bottom;
  width: 100%;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}
body {
  font-family: "Zen Kaku Gothic New", sans-serif;
}
a:hover {
  opacity: 0.3;
}
.global-navi ul li a:hover {
  opacity: 1;
  color: #8fa77d;
  font-weight: bold;
  border-bottom: 2px solid #8fa77d;
}
.container p a:hover {
  opacity: 1;
  background-color: #fff;
  color: #8fa77d;
  border: 2.5px solid #8fa77d;
}

/**header*/
h1 {
  text-align: center;
  font-weight: bold;
  color: #949494;
  font-size: 38px;
  font-family: "Varela Round", sans-serif;
}
header .header-box h1 {
  position: absolute;
  top: 160px;
  right: 8px;
  z-index: 1;
}
header .header-box h1 span {
  font-size: 24px;
}
header .header-visual img {
  width: 100%;
  height: 74vh;
  object-fit: contain;
  object-fit: cover;
  object-position: 68%;
  position: relative;
}

/** hamburgarボタン **/
.b-btn {
  width: 40px;
  height: 40px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.b-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #8fa77d;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.5s;
}

.b-btn .bar1 {
  top: 0%;
}
.b-btn .bar3 {
  top: 100%;
}

.b-btn.is_active .bar1 {
  transform: rotate(45deg);
  left: 0;
  top: 50%;
  background-color: #fff;
}
.b-btn.is_active .bar2 {
  opacity: 0;
}
.b-btn.is_active .bar3 {
  transform: rotate(135deg);
  left: 0;
  top: 50%;
  background-color: #fff;
}

/**グローバルナビ*/
.global-navi {
  background-color: #8fa77d;
  opacity: 0.95;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 100vw;
  transition: 0.5s;
  z-index: 1;
}
.global-navi ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  gap: 70px;
}

.global-navi ul li a {
  font-size: 20px;
  color: #fff;
  font-weight: bold;
}
.global-navi.is_active {
  left: 0;
}

@media (width>767px) {
  .b-btn {
    display: none;
  }
  .global-navi {
    position: static;
    top: 0;
    left: 0;
    background-color: #f6f0e4;
    width: 100%;
    height: fit-content;
  }
  .global-navi ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 120px;
    padding: 20px;
    background-color: #f6f0e4;
    font-weight: bold;
    font-size: 18px;
  }
  .global-navi ul li a {
    color: #949494;
  }
  header .header-box h1 {
    text-align: center;
    width: 40%;
    font-size: 52px;
    top: 190px;
  }
  header .header-box h1 span {
    font-size: 36px;
  }
  header .header-visual img {
    width: 100%;
    height: 89vh;
    object-fit: cover;
  }

  .global-navi.fixed {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 1;
  }
}
/**footer**/
footer {
  background-color: #f6f0e4;
  padding: 5px 0;
}
footer p {
  text-align: center;
  color: #949494;
}
/**main**/
main .inner {
  padding: 20px 20px 0;
  margin: 0 auto;
}
h2 {
  padding-bottom: 20px;
  text-align: center;
}

@media (width>767px) {
  main .inner {
    width: 1000px;
  }
  h2 {
    padding-bottom: 40px;
  }
}

/**ABOUT**/
.ABOUT {
  margin: 20px 0 40px;
}
.ABOUT p.my-img {
  width: fit-content;
  text-align: left;
  margin: 0 auto;
}
.ABOUT p.my-img img {
  width: 250px;
}
p.myname {
  font-size: 24px;
  margin: 20px 0;
}
@media (width>767px) {
  .ABOUT {
    margin: 40px 0 60px;
  }
  .about-moji {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  .about-moji p.my-img img {
    width: 300px;
  }
}

/**星の実装**/
.star5_rating {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
  color: #cccccc; /* グレーカラー 自由に設定化 */
  /*font-size: 30px; フォントサイズ 自由に設定化 */
}

.star5_rating:before,
.star5_rating:after {
  content: "★★★★★";
}

.star5_rating:after {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #ffcf32; /* イエローカラー 自由に設定化 */
}

.star5_rating[data-rate="5"]:after {
  width: 100%;
} /* 星5 */
.star5_rating[data-rate="4.5"]:after {
  width: 90%;
} /* 星4.5 */
.star5_rating[data-rate="4"]:after {
  width: 80%;
} /* 星4 */
.star5_rating[data-rate="3.5"]:after {
  width: 70%;
} /* 星3.5 */
.star5_rating[data-rate="3"]:after {
  width: 60%;
} /* 星3 */
.star5_rating[data-rate="2.5"]:after {
  width: 50%;
} /* 星2.5 */
.star5_rating[data-rate="2"]:after {
  width: 40%;
} /* 星2 */
.star5_rating[data-rate="1.5"]:after {
  width: 30%;
} /* 星1.5 */
.star5_rating[data-rate="1"]:after {
  width: 20%;
} /* 星1 */
.star5_rating[data-rate="0.5"]:after {
  width: 10%;
} /* 星0.5 */
.star5_rating[data-rate="0"]:after {
  width: 0%;
} /* 星0 */

/**skills**/
.SKILLS {
  margin: 40px 0;
}
.skills-box .skills-moji {
  margin-bottom: 30px;
  background-color: #f6f0e4;
  border-radius: 20px;
  padding: 20px;
}

.skills-box .skills-moji:last-child {
  margin-bottom: 0px;
}

@media (width>767px) {
  .SKILLS {
    margin: 60px 0;
  }
  .skills-box {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: auto auto;
    gap: 30px;
  }
  .skills-box .skills-moji {
    margin-bottom: 0;
    background-color: #faf8f4;
    border-radius: 20px;
    padding: 20px;
  }
}
/**Works**/
.WORKS {
  margin: 40px 0;
}
.WORKS div img {
  margin-bottom: 10px;
}
.WORKS .work-box .work-moji h3 {
  margin-bottom: 10px;
}
.WORKS .work-box:first-child {
  margin-bottom: 20px;
}
.WORKS .work-box .work-moji {
  text-align: center;
}
.WORKS .work-box a {
  color: #000;
}
@media (width>767px) {
  .WORKS {
    margin: 60px 0;
  }
  .WORKS > div {
    display: flex;
    gap: 40px;
  }
  .WORKS .work-box a {
    justify-content: space-between;
    align-items: center;
    gap: 50px;
  }

  .WORKS .work-box img {
    margin-bottom: 0;
    width: 450px;
  }
}
/**contact**/
.CONTACT {
  background-color: #8fa77d;
  margin: 0 calc(50% - 50vw);
  padding: 40px 0;
}
.CONTACT p {
  text-align: center;
  margin-bottom: 20px;
}
.CONTACT div {
  width: fit-content;
  margin: 0 auto;
}
.CONTACT a {
  color: #faf8f4;
}
@media (width>767px) {
  .CONTACT {
    padding: 60px 0;
  }
  .CONTACT p {
    margin-bottom: 40px;
  }
}

/**connect aqarium**/

.title {
  background-image: url(../img/29578920_s.jpg);
  background-position: 8px -5px;
  height: 180px;
}
.title h1 {
  color: #8fa77d;
  font-size: 29px;
  padding-top: 65px;
}
ol {
  background-color: #f6f0e4;
  list-style: none;
  padding: 10px;
  display: flex;
  color: #949494;
}
ol li {
  font-size: 14px;
}
ol li::after {
  content: ">";
  margin: 0 5px 0 10px;
}
ol li:last-child::after {
  content: none;
}
ol li a {
  color: #949494;
  text-decoration: underline;
}
.container {
  padding: 30px;
}
.container h2 {
  font-size: 20px;
  text-align: center;
  padding: 0;
  margin-bottom: 50px;
}
.container .content > dl dt {
  border-left: 5px solid #f6f0e4;
  padding-left: 5px;
}

.container dt {
  margin-bottom: 5px;
}

.container dd {
  margin-bottom: 30px;
  padding-left: 20px;
}

.container p a {
  display: block;
  line-height: 60px;
  text-align: center;
  margin: 50px auto 0;
  background-color: #8fa77d;
  color: #fff;
  border-radius: 50px;
}
.comment {
  background-color: #fff;
  border: #f6f0e4 6px solid;
  border-radius: 20px;
  padding: 0 20px;
}
.comment h3 {
  font-size: 18px;
  padding: 20px 0 30px;
}

.comment dl dt::before {
  content: "★";
  color: #8fa77d;
}

@media (width>767px) {
  .box {
    width: 1000px;
    margin: 0 auto;
  }
  .title {
    background-image: url(../img/29578919_m.jpg);
    background-position: -80px -80px;
    height: 300px;
    margin: 0 calc(50% - 50vw);
  }
  .title h1 {
    font-size: 46px;
    font-weight: bold;
    padding-top: 120px;
  }
  ol {
    margin: 0 calc(50% - 50vw);
    padding-left: 165px;
  }
  .container h2 {
    font-size: 24px;
  }
  .container p {
    width: 350px;
    margin: 0 auto;
  }

  .container .content > dl dt {
    border-left: 5px solid #8fa77d;
  }
  .content {
    display: flex;
    justify-content: space-between;
  }
  .content > dl {
    margin-top: 20px;
  }
  .comment {
    width: 530px;
    font-size: 15px;
  }
  .comment h3 {
    padding: 15px 0;
    text-align: center;
    font-size: 20px;
  }
}
