
:root {
  --header-max: 80px;
  --header-min: 50px; 
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-max) + 10px);
}

*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}

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

img {
  max-width: 100%;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  font-size: 16px;

  letter-spacing: 0.2em;
  line-height: 1;
  color: #262626;
}

.en {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* buttonの初期デザインをリセット */
button {
	background: none;
	border: none;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* header */
.header-wrapper {
  position: fixed;
  top: 0;
  transition: top .5s;

  width: 100%;
  height: var(--header-max);
  z-index: 100;

  background-color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* logo */
.header-logo {
  margin-left: 40px;
  display: block;
  width: 150px;
}

.header-logo__img {
  width: 100%;
}

/* メニュー */
.hamburger__button {
  display: none;
}

.header-site-menu__inner {
  margin-right: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.header-site-menu__list {
  font-size: 20px;
  font-weight: 700;
  margin-right: 40px;
}

.header-site-menu__list:last-of-type {
  margin-right: 0;
}

.header-site-menu__link:hover {
  opacity: 0.7;
}

/* scroll down */
.scroll-down-wrapper {
  position: fixed;
  z-index: 50;
  right: 40px;
  bottom: 80px;

  width: 80px;
  height: 100px;
  border-radius: 30px;

  background-color: #ffffff;
  opacity: 0.8;
}

.scroll-down {
  position: absolute;
  bottom: 1%;
  right: 50%;
  animation: arrow-move 2s ease-in-out infinite;
}

.scroll-down p {
  position: absolute;
  left: -24px;
  bottom: 16px;
  color: #262626;
  writing-mode: vertical-rl;
  text-decoration: none;

  font-weight: 500;
}

.scroll-down:before {
  content: "";
  position: absolute;
  bottom: 5px;
  right: -6px;
  width: 1px;
  height: 20px;
  background: #262626;
  transform: skewX(-31deg);
}

.scroll-down:after {
  content:"";
  position: absolute;
  bottom: 5px;
  right: 0;
  width: 1px;
  height: 80px;
  background: #262626;
}

@keyframes arrow-move{
   0%{bottom: 1%;}
   50%{bottom: 5%;}
   00%{bottom: 1%;}
}

/* main visual */
.main-vis-wrapper {
  margin-top: var(--header-max);
  height: 700px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-vis__title {
  font-size: 60px;
  font-weight: 700;
}

/* wrapper */
.wrapper {
  margin: 0 auto;
  width: 800px;
  max-width: 90%;
  padding-bottom: 180px;
}

/* section title */
.section__title {
  font-size: 32px;
  font-weight: 700;

  margin-bottom: 80px;
}

/* works */
.works-outer-home {
  padding-bottom: 100px;
}

.works-list {
  margin-bottom: 140px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.works-list:last-of-type {
  margin-bottom: 0;
}

.works-list-reverse {
  flex-direction: row-reverse;
}

.works-list__img {
  width: 55%;
}

.works-list__text {
  width: 45%;

  padding-right: 20px;
  padding-left: 50px;
}

.works-list__text-reverse {
  padding: 0 50px 0 0;
}

.works-list__title {
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 8px;
  line-height: 1.5;
}

.works-list-block {
  display: flex;
  align-items: center;
  justify-content: left;
  padding-bottom: 72px;
}

.works-list__sub {
  font-size: 14px;
  padding-right: 8px;
  line-height: 1.5;
}

.works-list__sub:last-of-type {
  padding-right: 0;
}

/* link button */
.works-list__link {
  display: flex;
  align-items: center;
  justify-content: right;
  font-weight: 500;
  width: fit-content;
  margin-left: auto;
  margin-right: 20px;
}

.works-list__link--btn,
.works-list__link--btn2 {
  position: relative;
  background: #eee; 
  color: #fff; 
  padding: 0.7rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  text-align: center;
  transition: 0.3s;
}

.works-list__link--btn:after {
  content: '';
  width: 8px;
  height: 8px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: calc(50% - 1px);
  right: calc(50% - 1px);
  border-radius: 1px;
  transition: 0.3s ease-in-out;
}

.works-list__link--btn2:after {
  content: '';
  width: 8px;
  height: 8px;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: calc(50% - 1px);
  right: calc(50% - 1px);
  border-radius: 1px;
  transition: 0.3s ease-in-out;
}

.works-list__link:hover .works-list__link--btn,
.works-list__link:hover .works-list__link--btn2 {
  transform: scale(1.15); 
  background: #333;
}

.works-list__link:hover .works-list__link--btn:after {
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.works-list__link:hover .works-list__link--btn2:after {
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.works-list__link--text {
  font-size: 12px;
  padding-left: 24px;
}

/* center */
.link__center {
  margin: 0 auto;
  font-size: 16px;
}

/* about */
.about-outer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-inner {
  padding-right: 10px;
}

.about__info {
  margin-bottom: 16px;
}

.about__info:last-of-type {
  margin-bottom: 50px;
}

.about__info-block {
  display: flex;
  align-items: center;

  margin-bottom: 24px;
}

.about__info-block:last-of-type {
  margin-bottom: 0;
}

.about__info2 {
  line-height: 1.5;
  margin-right: 40px;
}

.about__info3 {
  line-height: 1.5;
}

.about__img {
  width: 240px;
  height: 240px;
}

/* skill */
.skill-outer {
  display: grid;
  grid-template-columns: repeat(auto-fit, 48%);
  row-gap: 30px;
  justify-content: space-between;
}

.skill-list {
  border: solid 1px #eee;
  padding: 40px;
}

.skill__title {
  font-size: 20px;
  font-weight: 500;
  padding-bottom: 16px;
}

.skill__text {
  line-height: 2;
}

/* footer */
.footer-wrapper {
  padding-bottom: 20px;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
}

/* works 個別ページ */
.wrapper-works {
  width: 100%;
  padding-bottom: 180px;
}

.wrapper-works-top {
  margin: 0 auto;
  width: 900px;
  max-width: 90%;
  margin-bottom: 100px;
}

.wrapper-works-mid {
  width: 100%;
  background-color: #F5F5F5;
  margin-bottom: 100px;
}

.page-top {
  padding-top: calc(var(--header-max) + 80px);
}

.page-works-list__title {
  font-size: 28px;
  line-height: 1.5;
}

.page-works-list-block {
  padding-bottom: 120px;
}

/* link button */
.page-works-list__link {
  margin-right: 20px;
}

.page-works-list__link-sp {
  display: none;
}

/* pc sp */
.page-works-back {
  width: 900px;
  max-width: 90%;
  margin: 0 auto;
  padding: 80px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-works__img--pc-outer {
  width: 600px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: auto;
}

.page-works__img--sp-outer {
  width: 160px;
  max-width: 100%;
  aspect-ratio: 1 / 2;
  overflow: auto;
}

.page-works__img {
  display: block;
  margin: 0 auto;
  width: 400px;
  max-width: 80%;
}

/* table */
.page-works-table {
  margin: 0 auto;
  width: 800px;
  max-width: 90%;

  padding-bottom: 100px;
}

.page-works-row {
  display: flex;
  justify-content: space-between;
  line-height: 2;
}

.page-works-table__header {
  padding: 20px 30px;
  width: 30%;
  font-weight: 500;
  text-align: right;
}

.page-works-table__data {
  padding: 20px 30px;
  width: 70%;
}

/* pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination__link--prev,
.pagination__link--next {
  margin-left: 0;
  margin-right: 0;
  padding-right: 0;
}

.pagination__link--next {
  flex-direction: row-reverse;
}

.pagination__link--prev-text,
.pagination__link--next-text {
  font-size: 14px;
}

.pagination__link--prev-text {
  padding-left: 16px;
}

.pagination__link--next-text {
  padding-left: 0;
  padding-right: 16px;
}

.pagination__link--back {
  margin: 0 60px;
}

.pagination__link--back:hover {
  opacity: 0.7;
}

.pagination__link--back-sp {
  display: none;
}

.pagination__link--none {
  opacity: 0.5;
  pointer-events: none;
}

/* fade in */
.fade {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 1s,visibility 1s, transform 1s;
}

.fade-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 1s,visibility 1s, transform 1s;
}

.fade-bottom {
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition: opacity 2s,visibility 2s, transform 2s;
}

.fade-left {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-40px);
  transition: opacity 2s,visibility 2s, transform 2s;
}

.fade-right {
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity 2s,visibility 2s, transform 2s;
}

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


@media (max-width: 960px) {
  /* pc sp */
  .page-works-back {
    width: 500px;

    flex-direction: column;
  }

  .page-works__img--pc-outer {
    margin-bottom: 60px;
  }
}

/* SP用 */
@media (max-width: 640px) {
  html {
    scroll-padding-top: calc(var(--header-min) + 10px);
  }
  
  body {
    font-size: 14px;
  }

  /* header */
  .header-wrapper {
    height: var(--header-min);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-logo {
    width: 100px;
    margin-left: 20px;
  }

  
  /* ヘッダーメニュー */
  .header-site-wrapper {
    margin: 0;
    width: var(--header-min);

    display: flex;
    align-items: center;
    justify-content: center;

  }

  /* ハンバーガーボタンのデザイン */
  .hamburger__button {
    margin-right: 20px;
    height: 50px;
    width: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 500;
    
    cursor: pointer;
  }
  
  /* ハンバーガーボタン内の線 */
  .hamburger__button > span {
    content: "";
    background-color: #333333;

    display: block;
    height: 3px;
    width: 30px;
    border-radius: 10px;

    position: absolute;
  }

  .hamburger__button > span:first-child {
    top: 16px;
  }

  .hamburger__button > span:last-child {
    bottom: 16px;
  }

  /* 展開時のデザイン */
  .hamburger__button.active > span:first-child {
    visibility: visible;
    top: 23px;
    transform: rotate(45deg);
    background-color: #ffffff;
  }

  .hamburger__button.active > span:nth-child(2) {
    visibility: hidden;
  }

  .hamburger__button.active > span:last-child {
    visibility: visible;
    bottom: 24px;
    transform: rotate(-45deg);
    background-color: #ffffff;
  }

  /* メニュー内容 */
  #header-site-menu {
    width: 100%;
    height: 100%;
    padding-top: 100px;

    background-color: rgba(54, 54, 54, 0.9);
    color: #ffffff;
  
    position: fixed;
    top: 0;
    left: 100%;
    z-index: 300;
  
    transition: all 0.5s;

    /* スクロール可能にする height: 100%;が必須 */
    overflow: scroll;
  }

  /* メニューを縦並びに */
  .header-site-menu__inner {
    margin-right: 0;

    flex-direction: column;
  }
  
  .header-site-menu__list {
    padding-bottom: 40px;
    margin: 0;

    width: 100px;
    text-align: left;
  }

  /* メニューをどれだけ左側に表示させるか */
  #header-site-menu.active {
    left: 0;
  }

  /* ハンバーガーメニュー表示時に背景を暗くする */
  #header-site-menu.active ~ .header-site-back {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 200;
    background: rgba(3,3,3,.5);
    display: block;

  }

  /* scroll down */
  .scroll-down-wrapper {
    right: 20px;
    bottom: 30px;

    width: 48px;
    height: 70px;
    position: fixed;
    z-index: 50;
  }

  .scroll-down p {
    font-size: 10px;
    left: -16px;
    bottom: 8px;
  }

  .scroll-down:before {
    bottom: 5px;
    right: -5px;
    width: 1px;
    height: 16px;
  }

  .scroll-down:after {
    bottom: 5px;
    right: 0;
    width: 1px;
    height: 50px;
  }

  /* main visual */
  .main-vis-wrapper {
    margin-top: var(--header-min);
    height: 500px;
  }

  .main-vis__title {
    font-size: 40px;
  }
  
  /* wrapper */
  .wrapper {
    max-width: 80%;
    padding-bottom: 100px;
  }

  /* section title */
  .section__title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  /* works */
  .works-outer-home {
    padding-bottom: 40px;
  }

  .works-list {
    margin-bottom: 60px;

    flex-direction: column;
  }

  .works-list:last-of-type {
    margin-bottom: 0;
  }
  
  .works-list__text-reverse {
    padding: 0;
  }
  
  .works-list__img {
    width: 100%;
    padding-bottom: 24px;
  }
  
  .works-list__text {
    width: 100%;
  
    padding-left: 0;
  }
  
  .works-list__title {
    font-size: 18px;
    padding-bottom: 8px;
  }
  
  .works-list-block {
    padding-bottom: 24px;
  }

  .works-list__sub {
    font-size: 12px;
  }
  
  .works-list__link--text {
    padding-left: 16px;
  }

  /* link button */
  .works-list__link {
    margin-right: 0;
  }

  /* center */
  .link__center {
    margin: 0 auto;
  }

  /* about */
  .about-outer {
    flex-direction: column;
  }

  .about-inner {
    padding-right: 0;
    margin-right: auto;
    margin-bottom: 30px;
  }
  
  .about__info:last-of-type {
    margin-bottom: 40px;
  }
  
  .about__info2 {
    margin-right: 20px;
  }

  /* skill */
  .skill-outer {
    grid-template-columns: repeat(auto-fit, 100%);
  }

  .skill-list {
    padding:  40px 30px;
  }
  
  .skill__title {
    font-size: 16px;
    padding-bottom: 8px;
  }
  
  /* footer */
  .footer-copyright {
    font-size: 10px;
  }

  /* works 個別ページ */
  .wrapper-works {
    padding-bottom: 100px;
  }

  .wrapper-works-top {
    max-width: 80%;
    margin-bottom: 60px;
  }

  .wrapper-works-mid {
    margin-bottom: 60px;
  }
  
  .page-top {
    padding-top: calc(var(--header-min) + 40px);
  }

  .page-works-list__title {
    font-size: 20px;
  }
  
  /* link */
  .page-works-list__link {
    display: none;
  }

  .page-works-list__link-sp {
    display: flex;
  }
  
  /* pc sp */
  .page-works-back {
    max-width: 80%;
    padding: 60px 0;

    flex-direction: column;
  }

  .page-works__img--pc-outer {
    margin-bottom: 40px;
  }

  .page-works__img {
    width: 300px;
  }
  
  .page-works-row {
    flex-direction: column;
  }

  /* table */
  .page-works-table {
    max-width: 80%;

    padding-bottom: 40px;
  }

  .page-works-table__header {
    padding: 15px 0 5px 0;
    width: 100%;
    text-align: left;
  }
  
  .page-works-table__data {
    padding: 5px 0 15px 0;
    width: 100%;
  }
  
  /* pagination */
  .pagination {
    margin-bottom: 10px;
  }

  .pagination__link--back {
    display: none;
  }

  .pagination__link--prev-text,
  .pagination__link--next-text {
    font-size: 12px;
  }
  
  .pagination__link--next-text {
    margin-left: 30px;
  }

  .pagination__link--back-sp {
    display: block;
    text-align: center;
  }

  .pagination__link--back-sp:hover {
    opacity: 0.7;
  }
  
  
}