﻿@font-face {
  font-family: "OSP-DIN";
  src: url(../font/OSP-DIN.ttf);
}

body {
  font-family: "Noto Sans JP", Arial;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #333;
}

a {
  transition: opacity 0.3s;
  text-decoration: none;
  color: #1d2b53;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/*--------------------------------
    レイアウト
---------------------------------*/
.wrapper {
  padding-top: 73px;
  background-image: url("../img/cat-1868606_1280.jpg");
  background-size: cover;
  background-position: top;
  background-attachment: fixed;
  overflow-y: auto;
  height: 100vh;
}

@media (max-width: 767px) {
  .wrapper {
    background-size: 180%;
    background-position: center -100px;
  }
}

.section {
  padding: 90px 0;
  background-color: rgba(128, 188, 188, 0.8);
}

.section:nth-of-type(odd) {
  background-color: rgba(247, 247, 247, 0.5);
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

/*--------------------------------
    見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 0.05em;
  color: #333;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px -6px rgba(0, 0, 0, 0.1);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}
.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: 0.05em;
}
.header-logo a {
  color: #333;
}
#menu__toggle {
  display: none;
}
.menu__btn {
  display: none;
}
@media screen and (max-width: 767px) {
  nav {
    display: flex;
    align-items: center;
    z-index: 20;
  }

  .gnav-list {
    flex-direction: column;
    position: fixed;
    visibility: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 20em;
    margin: 0;
    padding: 0.6em 0;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 1px 0 6px rgba(255, 255, 255, 0.2);
    z-index: 15;
    transition-duration: 0.5s;
  }

  .gnav-item {
    display: block;
    padding: 12px 24px;
    color: #ffffff;
    font-size: 18px;
  }

  .gnav-item:hover {
    background-color: #dcf2f1;
  }
  #menu__toggle {
    opacity: 0;
  }

  #menu__toggle:checked ~ .menu__btn > span {
    transform: rotate(45deg);
  }

  #menu__toggle:checked ~ .menu__btn > span::before {
    top: 0;
    transform: rotate(0);
    background: #f06c64;
  }

  #menu__toggle:checked ~ .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
    background: #f06c64;
  }

  #menu__toggle:checked ~ .gnav-list {
    visibility: visible;
    left: 0;
    margin: -8px 0 0 0;
  }

  .menu__btn {
    transition-duration: 0.25s;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    bottom: 2px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 17;
  }

  .menu__btn span {
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #000000;
  }

  .menu__btn span::before {
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #000000;
    content: "";
    top: -8px;
    transition-duration: 0.25s;
  }

  .menu__btn span::after {
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #000000;
    content: "";
    top: 8px;
    transition-duration: 0.25s;
  }
  .menu-overlay {
    display: none;
    position: fixed; /* 画面全体に広がるように固定位置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
    z-index: 10; /* メニューより下に表示 */
  }
  #menu__toggle:checked ~ .menu-overlay {
    display: block; /* メニューが開いている時のみ背景を表示 */
  }
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: 0.3s;
  letter-spacing: 0.05em;
  color: #333;
}
.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: 0.3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #333;
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
    メインビジュアル
---------------------------------*/
.mv {
  text-align: center;
  background-color: rgba(247, 247, 247, 0.5);
  padding-top: 50px;
}

.mv-container {
  padding: 40px;
  max-width: 1340px;
  margin: 0 auto;
}

.mv-title {
  font-size: 60px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 5px;
  letter-spacing: 0.1em;
  text-shadow: 0px 7.36px 4.896px #64ccc5, 0px -1px 0px #fff;
  animation: title_yurayura 5s infinite;
  font-family: OSP-DIN;
}

.mv-subtitle {
  font-size: 20px;
  color: #ffffff;
  font-weight: bold;
  line-height: 1;
  margin-top: 40px;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  border-radius: 5px;
  border: 1px solid #000000;
  background: #000000;
  padding: 5px 0px;
  font-family: OSP-DIN;
}

.mv-text-body {
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
}

.mv-text-body-left {
    text-align: left;
    max-width: 800px;
}

.mv-text-body .mv-text:not(:last-child) {
  margin-bottom: 30px;
}

.mv-text {
  font-size: 16px;
  line-height: 1.8;
}

@keyframes title_yurayura {
  50% {
    text-shadow: 7px 11.36px 4.896px #64ccc5, 0px -1px 0px #fff;
  }

  100% {
    text-shadow: 0px 7.36px 4.896px #64ccc5, 0px -1px 0px #fff;
  }
}

/*--------------------------------
Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.5873%;
  margin-bottom: 40px;
  color: #333;
}

.works-item:hover {
  opacity: 0.9;
  animation: shake 6s infinite;
}

.works-item:active {
  animation: linkclick 0.2s;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #e6e6e6;
}

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
}
/*--------------------------------
    Personal
    ---------------------------------*/
.personal-item {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin: 50px auto;
  border: 1px solid rgba(51, 51, 51, 0.5);
}

.personal-left {
  padding: 2rem 1.5rem;
  width: 100%;
  background-color: rgb(255 255 255 / 0.5);
}

.personal-title {
  text-align: left;
  font-size: 1.2rem;
  padding: 1rem;
  background-color: rgb(221 235 157 / 0.5);
}

.personal-title a {
  color: #1d2b53;
  text-shadow: 1px 2px 2px #fff;
  display: inline-block;
}

.personal-title a:hover {
  color: rgba(55, 205, 190, 1);
  background: linear-gradient(
    transparent,
    transparent 69%,
    rgba(6, 143, 255, 0.3) 80%,
    rgba(6, 143, 255, 0.2) 85%,
    transparent 90%
  );
  background-color: rgba(58, 191, 248, 0.3);
  border-radius: 5px;
}

.personal-title a:active {
  animation: linkclick 0.2s;
}

.personal-body {
  text-align: left;
  padding-left: 25px;
}

.personal-right {
    width: 99%;
    margin: 0.5rem auto;
    cursor: pointer;
}
@media screen and (max-width: 767px) {
  .personal-left {
    padding: 0.5rem 0.5rem;
  }
}
/*--------------------------------
    Skill
    ---------------------------------*/

.skill-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    border-collapse: collapse;
    background-color: #fdfdfd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
    .skill-table th {
        background-color: #0077b6;
        color: white;
        text-align: center;
        padding: 12px;
        font-weight: bold;
    }

    .skill-table td {
        padding: 12px;
        text-align: center;
    }
    .skill-table tr:nth-child(even) {
        background-color: #f0f8ff;
    }

    .skill-table tr:nth-child(odd) {
        background-color: #ffffff;
    }
/*--------------------------------
    About
    ---------------------------------*/
.profile {
  display: grid;
  max-width: 800px;
  margin: 0 auto;
  grid-template-columns: 1fr 5fr;
  grid-template-rows:1fr 1fr;
}

.profile-img {
  margin-right: 30px;
  border-radius: 50%;
  grid-column:1 / 2;
  grid-row:1 / 2;
}

.profile-img img {
  border-radius: 50%;
}

.profile-body {
    text-align:left;
    grid-column:2 / -1;
    grid-row:1 / -1;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

/*--------------------------------
    Contact
    ---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-item {
  color: #1d2b53;
  background: linear-gradient(
    transparent,
    transparent 69%,
    rgba(6, 143, 255, 0.5) 80%,
    rgba(6, 143, 255, 0.4) 85%,
    transparent 90%
  );
  display: inline-block;
}

.contact-item:hover {
  color: rgba(55, 205, 190, 1);
  background: linear-gradient(
    transparent,
    transparent 69%,
    rgba(6, 143, 255, 0.3) 80%,
    rgba(6, 143, 255, 0.2) 85%,
    transparent 90%
  );
  background-color: rgba(58, 191, 248, 0.3);
  border-radius: 5px;
}

contact-item:active {
  animation: linkclick 0.2s;
}

.contact-text {
  margin-top: 10px;
}
/*--------------------------------
    ページトップ
    ---------------------------------*/
.page-top {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #4c4c4c;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}

/*--------------------------------
    フッター
    ---------------------------------*/
.footer {
  padding: 30px;
  background-color: #333;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #797979;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 30px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #333;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.home-link {
  text-align: center;
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* レイアウト */
  .wrapper {
    padding-top: 57px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
    transition: none;
    width: 100%;
  }

  .gnav-item a:after {
    display: none;
  }

  /*  メインビジュアル */

  .mv-container {
    padding: 0 20px;
  }

  .mv-title {
    font-size: 30px;
  }

  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .mv-text {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Works */
  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
    margin-bottom: 20px;
  }

  .works-list {
    justify-content: space-between;
    display: block;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  /* Personal */
  .personal-left {
    max-width: 600px;
  }
  /* Skill */
  .skill-list {
    display: block;
    margin-bottom: 0;
  }

  .skill-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  .skill-name {
    margin-bottom: 5px;
  }

  .skill-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* About */
  .profile {
    display: block;
  }

  .profile-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: 0.8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
}

/* SNS共有ボタン用 */
.facebook-img {
  display: inline-block;
  background: url("../img/facebook-sns.png") no-repeat center center;
  background-size: contain;
  height: 40px;
  width: 40px;
  margin: 5px;
}

.facebook-img:hover {
  opacity: 0.9;
  animation: shake 6s infinite;
}

.facebook-img:active {
  animation: linkclick 0.2s;
}

.twitter-img {
  display: inline-block;
  background: url("../img/logo-black.png") no-repeat center center;
  background-size: contain;
  height: 40px;
  width: 40px;
  margin: 5px;
}

.twitter-img:hover {
  opacity: 0.9;
  animation: shake 6s infinite;
}

.twitter-img:active {
  animation: linkclick 0.2s;
}

.line-img {
  display: inline-block;
  background: url("../img/line-sns.png") no-repeat center center;
  background-size: contain;
  height: 40px;
  width: 40px;
  margin: 5px;
}

.line-img:hover {
  opacity: 0.9;
  animation: shake 6s infinite;
}

.line-img:active {
  animation: linkclick 0.2s;
}

.pocket-img {
  display: inline-block;
  background: url("../img/pocket-sns.png") no-repeat center center;
  background-size: contain;
  height: 40px;
  width: 40px;
  margin: 5px;
}

.pocket-img:hover {
  opacity: 0.9;
  animation: shake 6s infinite;
}

.pocket-img:active {
  animation: linkclick 0.2s;
}

.linkedin-img {
  display: inline-block;
  background: url("../img/linkedin-sns.png") no-repeat center center;
  background-size: contain;
  height: 40px;
  width: 40px;
  margin: 5px;
}

.linkedin-img:hover {
  opacity: 0.9;
  animation: shake 6s infinite;
}

.linkedin-img:active {
  animation: linkclick 0.2s;
}

.note-img {
  display: inline-block;
  background: url("../img/note-sns.png") no-repeat center center;
  background-size: contain;
  height: 40px;
  width: 40px;
  margin: 5px;
}

.note-img:hover {
  opacity: 0.9;
  animation: shake 6s infinite;
}

.note-img:active {
  animation: linkclick 0.2s;
}

.qiita-img {
  display: inline-block;
  background: url("../img/qiita-sns.png") no-repeat center center;
  background-size: contain;
  height: 40px;
  width: 40px;
  margin: 5px;
}

.qiita-img:hover {
  opacity: 0.9;
  animation: shake 6s infinite;
}

.qiita-img:active {
  animation: linkclick 0.2s;
}

.zenn-img {
  display: inline-block;
  background: url("../img/zenn.dev-sns.png") no-repeat center center;
  background-size: contain;
  height: 40px;
  width: 40px;
  margin: 5px;
}

.zenn-img:hover {
  opacity: 0.9;
  animation: shake 6s infinite;
}

.zenn-img:active {
  animation: linkclick 0.2s;
}

.github-img {
  display: inline-block;
  background: url("../img/github-sns.png") no-repeat center center;
  background-size: contain;
  height: 40px;
  width: 40px;
  margin: 5px;
}

.github-img:hover {
  opacity: 0.9;
  animation: shake 6s infinite;
}

.github-img:active {
  animation: linkclick 0.2s;
}

/* アニメーション */
@keyframes shake {
  0% {
    transform: scale(1.1);
  }

  20% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.1);
  }

  60% {
    transform: scale(1);
  }

  80% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes linkclick {
  0% {
    transform: translateY(1px) scale(1.02, 1.02);
  }

  100% {
    transform: translateY(-1px) scale(1, 1);
  }
}
