@charset "utf-8";

/*
Theme Name: ft PORTFOLIO
Author: TATSUYA FUJITA
Author URI:
Description: ポートフォリオ用のテーマ
Version: 1.0
*/

:root {
  --off-white: #fefefe;
  --text-color: #231815;
  --body-color: #e2e2e2;
  --nav-text-color: #666464;
  --nav-color: #beb1aa;
  --primary-color: #d3cbc5;
}

/*********************************

              Base 共通

**********************************/

html {
  scroll-behavior: smooth;
  @media (max-width: 768px) {
    scroll-behavior: auto;
  }
}

body {
  font-family: sans-serif;
  min-width: 375px;
  width: 100%;
  height: 100%;
  color: var(--text-color);
  display: grid;
  grid-template-columns: minmax(15px, 1fr) minmax(auto, 1080px) minmax(
      15px,
      1fr
    );
  @media (max-width: 768px) {
    animation: fadein 0.6s forwards;
  }
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body > * {
  grid-column: 2 / -2;
}

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

.fixed {
  overflow-y: hidden;
}

/**************************

header

***************************/

.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  /* background-color: rgba(247, 247, 247, 0.1); */
  backdrop-filter: blur(12px);
  /* box-shadow: 0 1px 30px var(--body-color); */
  z-index: 1000;
}

.header__inner {
  max-width: 1080px;
  padding: 0 15px;
  margin: 0 auto;
  height: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /****SPナビゲーション　あしらい****/
  &::after {
    content: "";
    position: fixed;
    z-index: 998;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--nav-color);
    transform: scale(0);
    right: -50px;
    top: -50px;
    transition: transform 0.8s;
  }
}
/****SPナビゲーション　あしらい****/
.header__inner.active::after {
  transform: scale(50);
}

.header-logo {
  font-family: "Cardo", serif;
  font-display: swap;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 16px;
  @media (max-width: 768px) {
    &::after {
      content: "";
      position: fixed;
      z-index: 998;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background-color: var(--nav-color);
      transform: scale(50);
      opacity: 0;
      right: -50px;
      top: -50px;
      transition: transform 0.8s ease;
      pointer-events: none;
    }
  }
}

.header-logo.active::after {
  transform: scale(0);
  opacity: 1;
}

.header-logo a {
  display: block;
}

.hamburger {
  width: inherit;
  display: grid;
  place-items: center;
  padding: 10px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s;

  @media (max-width: 768px) {
    opacity: 1;
    visibility: visible;
  }
}

.hamburger span {
  height: 2px;
  width: 25px;
  border-radius: 1px;
  background-color: var(--nav-text-color);
  position: relative;
  transition: transform 0.4s;

  &::before {
    content: "";
    width: inherit;
    height: inherit;
    position: absolute;
    background-color: var(--nav-text-color);
    top: -8px;
    transition: transform 0.4s;
  }
  &::after {
    content: "";
    width: inherit;
    height: inherit;
    position: absolute;
    background-color: var(--nav-text-color);
    top: 8px;
    transition: transform 0.4s;
  }
}

.hamburger.active span {
  background: transparent;

  &::before {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 0;
    width: 100%;
    height: 2px;
  }
  &::after {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 0;
    height: 2px;
  }
}

.header__nav {
  @media (max-width: 768px) {
    inset: 0;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    height: 100vh;
    width: 100%;
    display: grid;
    place-content: center;
    z-index: 100;
    background-color: var(--nav-color);
    transition: opacity 0.6s 0.3s;
  }
}

.header__nav.active {
  opacity: 1;
  visibility: visible;
  z-index: 999;
}

.header__menu {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;

  @media (max-width: 768px) {
    display: none;
    justify-content: flex-start;
    flex-direction: column;
    gap: 50px;
    font-size: 1.4em;
  }
}

.header__nav.active .header__menu {
  display: flex;
}

.header__menu li a {
  display: block;
  padding: 5px 2px;
  font-weight: 400;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s;
    transform: scale(0, 1);
    transform-origin: left top;
  }
  @media (max-width: 768px) {
    color: var(--nav-text-color);
    &::after {
      background-color: transparent;
    }
  }
}

.header__menu li a:hover::after {
  transform: scale(1, 1);
}

/**************************

HERO

***************************/

.hero {
  height: 100svh;
  display: grid;
  grid-column: 1 / -1;
  place-content: center;
  /* background-color: var(--body-color); */
  position: relative;
  animation: bg-change 120s ease infinite;
  /**スクロールあしらい**/
  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(50% - 4px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /* background-color: var(--nav-color); */
    animation: circle-move 2.6s ease-in-out infinite,
      circle-move-hide 2.6s ease-out infinite, scroll-change 120s ease infinite;
  }
  &::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 2px;
    height: 70px;
    /* background-color: var(--nav-color); */
    animation: scroll-change 120s ease infinite;
  }
}

@keyframes bg-change {
  0%,
  100% {
    background: var(--body-color);
  }
  10%,
  90% {
    background: #beb1aa;
  }
  20%,
  80% {
    background: #c5c2b9;
  }
  30%,
  70% {
    background: #b5b1a6;
  }
  40%,
  60% {
    background: #a5a298;
  }
  50% {
    background: #8b8781;
  }
}

@keyframes scroll-change {
  0%,
  100% {
    background: #8b8781;
  }
  10%,
  90% {
    background: #a5a298;
  }
  20%,
  80% {
    background: #b5b1a6;
  }
  30%,
  70% {
    background: #c5c2b9;
  }
  40%,
  60% {
    background: #beb1aa;
  }
  50% {
    background: var(--body-color);
  }
}

@keyframes circle-move {
  0% {
    bottom: 70px;
  }
  100% {
    bottom: 5px;
  }
}

@keyframes circle-move-hide {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}

.hero__title {
  font-family: "Cardo", serif;
  font-display: swap;
  font-weight: 400;
  font-size: clamp(24px, 3.333vw, 36px);
  letter-spacing: 0.02em;
}

.hero__subtitle {
  text-align: center;
}

.heading {
  font-family: "Cardo", serif;
  font-display: swap;
  font-size: clamp(24px, 2.777vw, 30px);
  text-align: center;
}

/**************************

card

***************************/

.card-wrapper {
  margin-top: 60px;
  display: grid;
  z-index: 10;
}

.card-wrapper.card-wrapper--works {
  /* grid-template-columns: repeat(4, 1fr); */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5.555vw, 60px);
  padding-bottom: clamp(0px, 14.814vw, 160px);
  @media (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media (max-width: 390px) {
    grid-template-columns: repeat(1, 1fr);
  }
}

.card-wrapper.card-wrapper--skill {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5.555vw, 60px);
  justify-content: center;
  padding-bottom: clamp(0px, 14.814vw, 160px);
}

.card {
  width: 100%;
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: all 0.5s;
  &:hover {
    box-shadow: 0px 20px 10px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    opacity: 0.8;
    transition-duration: 0.3s;
  }
}

.card__title {
  text-align: center;
  line-height: 1;
  font-weight: 400;
  margin-top: 18px;
}

.card__title.card__title--skill {
  font-size: 18px;
  font-weight: 700;
}

.card__text {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}

/**************************

section
main

***************************/

.section {
  min-height: 100vh;
  height: 100%;
  padding: clamp(120px, 14.814vw, 160px) 0;
  grid-column: 1/ -1;
  display: grid;
  grid-template-columns: subgrid;
}

.section__inner,
.footer__inner {
  grid-column: 2 / -2;
}

/**************************

works

***************************/

.works {
  background-color: var(--off-white);
  position: relative;
  &::before {
    position: absolute;
    bottom: -0.19em;
    left: -0.3em;
    content: "Works";
    font-family: "Cardo", serif;
    font-display: swap;
    font-size: clamp(60px, 30vw, 300px);
    color: rgba(0 0 0 / 0);
    -webkit-text-stroke: clamp(0.5px, 0.23vw, 3px) var(--primary-color);
    text-stroke: clamp(0.5px, 0.23vw, 3px) var(--primary-color);
    line-height: 1;
    z-index: 1;
  }
}

/**************************

Skill

***************************/

.skill {
  position: relative;
  background-color: var(--primary-color);
  &::before {
    position: absolute;
    bottom: -0.185em;
    left: -0.1em;
    content: "Skill";
    font-family: "Cardo", serif;
    font-display: swap;
    font-size: clamp(60px, 30vw, 300px);
    color: rgba(0 0 0 / 0);
    -webkit-text-stroke: clamp(0.5px, 0.23vw, 3px) var(--off-white);
    text-stroke: clamp(0.5px, 0.23vw, 3px) var(--off-white);
    line-height: 1;
    z-index: 1;
  }
}

/**************************

About

***************************/

.about {
  background-color: rgb(248, 248, 248);
  position: relative;
  &::before {
    position: absolute;
    bottom: -0.19em;
    left: -0.2em;
    content: "About";
    font-family: "Cardo", serif;
    font-display: swap;
    font-size: clamp(60px, 30vw, 300px);
    color: rgba(0 0 0 / 0);
    -webkit-text-stroke: clamp(0.5px, 0.23vw, 3px) var(--primary-color);
    text-stroke: clamp(0.5px, 0.23vw, 3px) var(--primary-color);
    line-height: 1;
    z-index: 1;
  }
}

.about__sub-heading {
  text-align: center;
  font-size: clamp(8px, 1.111vw, 12px);
  margin-top: 18px;
}

.about__text-body {
  margin: 30px auto 0;
  max-width: 30em;
}

.about__text {
  font-size: inherit;
  line-height: 1.8;
  &:not(:first-child) {
    margin-top: 20px;
  }
}

.certification-list {
  max-width: 25em;
  margin: 30px auto;
  font-size: 12px;
  line-height: 2.2;
}

.certification-list li {
  list-style: disc;
}

/**************************

Contact

***************************/

.contact {
  position: relative;
  background-color: var(--primary-color);
  &::before {
    position: absolute;
    bottom: 0;
    left: -0.2em;
    content: "Contact";
    font-family: "Cardo", serif;
    font-display: swap;
    font-size: clamp(60px, 30vw, 300px);
    color: rgba(0 0 0 / 0);
    -webkit-text-stroke: clamp(0.5px, 0.23vw, 3px) var(--off-white);
    text-stroke: clamp(0.5px, 0.23vw, 3px) var(--off-white);
    line-height: 1;
    z-index: 1;
  }
}

.contact-form {
  max-width: 600px;
  margin: 60px auto 120px;
}

.contact-form__title {
  font-weight: 400;
  margin-top: 40px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  border: solid 2px var(--off-white);
  padding: 0.8em 0.8em;
  margin-top: 8px;
  width: 100%;
  transition: background-color 0.8s;
  &:focus {
    background-color: var(--off-white);
  }
}

.btn {
  display: inline-block;
  width: 200px;
  padding: 10px 0;
  text-align: center;
  border: solid 2px var(--off-white);
  position: relative;
  cursor: pointer;
  z-index: 10;
}

.btn--submit {
  font-family: "Cardo", serif;
  font-display: swap;
  font-size: 18px;
  margin-top: 50px;
  transition: all 0.3s ease;
  background-color: var(--off-white);
  box-shadow: 0px 15px 10px -10px rgba(0, 0, 0, 0.5);
  transform: translateY(-10px);
  opacity: 0.8;
  &:hover {
    box-shadow: none;
    transform: translateY(0);
    transition-duration: 0.3s;
  }
}

/**************************

footer

***************************/

.footer {
  background-color: var(--primary-color);
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  height: 100px;
}

/**************************

main

***************************/

.main {
  min-height: calc(100vh - 100px);
  height: 100%;
  padding: clamp(120px, 14.814vw, 160px) 0;
  max-width: 800px;
  margin: auto;
}

.main__inner {
  margin-top: 60px;
}

.main__inner img {
  width: 100%;
}

.main__inner p {
  line-height: 1.6;
  margin-top: 20px;
}

.main__inner h3 {
  display: flex;
  align-items: flex-end;
  font-size: 18px;
  font-weight: 700;
  &::before {
    content: "";
    width: 4px;
    height: 24px;
    background-color: var(--nav-color);
    margin-top: 40px;
    margin-right: 12px;
  }
}

.main__inner p a {
  text-decoration: underline;
  color: blue;
}

.main__inner ul {
  list-style: disc;
  line-height: 1.8;
  margin-top: 20px;
  margin-left: 40px;
}

/**************************

404 not found

***************************/

.not-found {
  min-height: calc(100vh - 100px);
  height: 100%;
  padding: clamp(120px, 14.814vw, 160px) 0;
  grid-column: 1/ -1;
  display: grid;
  grid-template-columns: subgrid;
  position: relative;
  &::before {
    position: absolute;
    bottom: -0.19em;
    left: -0.19em;
    content: "404 not found";
    font-family: "Cardo", serif;
    font-display: swap;
    font-size: clamp(60px, 10.416vw, 200px);
    /* font-size: clamp(60px, 30vw, 300px); */
    color: rgba(0 0 0 / 0);
    -webkit-text-stroke: clamp(0.5px, 0.23vw, 3px) var(--nav-color);
    text-stroke: clamp(0.5px, 0.23vw, 3px) var(--nav-color);
    line-height: 1;
    z-index: 1;
  }
}

.not-found__inner {
  grid-column: 2 / -2;
}

.not-found__text {
  text-align: center;
  margin-top: 40px;
}

/********************

recaptcha

*********************/
.grecaptcha-badge {
  visibility: hidden;
}