@charset "UTF-8";

/* == Common == */
:root {
    /* = spacing = */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 40px;
    --spacing-xl: 50px;
    --spacing-heading-gap: 5px;
    --spacing-section: 70px;

    /* = border-radius = */
    --border-radius-nav: 7px;
    --border-radius-circle: 50%;
    --border-radius-pill: 40px;

    /* = height = */
    --btn-height-lg: 100px;
    --btn-height-sm: 80px;

    /* = font-size = */
    --font-heading-en: 3rem;/* 48px */
    --font-heading-jp: 1.25rem; /* 20px */
    --font-nav-en: 0.875rem; /* 14px */
    --font-nav-jp: 0.875rem; /* 14px */
    --font-base: 0.875rem; /* 14px */
    --font-label: 1rem;/* 16px */
    --font-btn-lg: 1rem;/* 16px */
    --font-btn-sm: 0.875rem;/* 14px */

    /* = font-weight/primitive = */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* = font-weight/semantic = */
    --font-weight-heading-en: var(--font-weight-bold);
    --font-weight-heading-jp: var(--font-weight-medium);
    --font-weight-nav-en: var(--font-weight-bold);
    --font-weight-nav-jp: var(--font-weight-medium);
    --font-weight-h3: var(--font-weight-bold);
    --font-weight-base: var(--font-weight-regular);
    --font-weight-label: var(--font-weight-semibold);
    --font-weight-btn-lg: var(--font-weight-bold);
    --font-weight-btn-sm: var(--font-weight-bold);

    /* = line-height = */
    --line-height-heading: 1;
    --line-height-base: 2;

    /* = font-family = */
    --font-family-jp: "Noto Sans JP", sans-serif;
    --font-family-en: "Inter", sans-serif;

    /* = color/primitive = */
    --pink-500: #F06062;
    --pink-300: #FFCCCC;
    --lime-800:#87B485;
    --lime-500:#CAE846;
    --lime-300:#E2F494;
    --black:#161616;
    --gray:#8F8F8F;
    --cream: #FEFBF0;
    --off-white: #FEFEFA;
    --white: #FFFFFF;
    --red-500:#D32B2D;
    --blue-800:#1E334C;
    --blue-500:#4F6E93;
    --blue-300:#CFE5FF;

    /* = color/semantic = */
    --color-primary: var(--blue-300);
    --color-accent: var(--red-500);
    --color-base: var(--cream);
    --color-header: var(--blue-800);
    --color-nav: var(--pink-500);
    --color-nav-text: var(--white);
    --color-selected: var(--red-500);
    --color-heading-en: var(--blue-800);
    --color-heading-jp: var(--blue-800);
    --color-img-area: var(--blue-300);
    --color-text: var(--black);
    --color-label: var(--white);
    --color-label-about: var(--pink-300);
    --color-btn-text: var(--white);
    --color-btn-bg:  var(--blue-800);
    --color-btn-text-hover: var(--blue-800);
    --color-btn-bg-hover:  var(--white);
    --color-diff: var(--blue-500);
    --color-white: var(--off-white);
    --color-dark: var(--off-blue-800);

    /* = break point = */
    --break-point-sp: 768px;
    --break-point-pc: 1024px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", "Inter", sans-serif;
    font-size: var(--font-base);
    font-weight: 400;
    line-height: var(--line-height-base);
    font-family: var(--font-family-jp), var(--font-family-en);
    font-style: normal;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url(../images/bg-white.jpg);
    background-repeat: repeat;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 70px 0;
}

.heading {
    position: relative;
    z-index: 1;
    padding: 100px;
}

.heading::before {
    content: "";
    position: absolute;
    top: 50%;
    z-index: -1;
    width: 200px;
    height: 200px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-circle);
    transform: translate(calc(-50% + 5px), -50%);
}

.heading__en {
    display: block;
    padding-top: var(--spacing-heading);
    font-size: var(--font-heading-en);
    font-weight: var(--font-weight-heading-en);
    line-height: var(--line-height-heading);
    color: var(--color-heading-en);
    z-index: 1;
}

.heading__jp {
    display: block;
    margin-top: var(--spacing-heading);
    font-size: var(--font-heading-jp);
    font-weight: var(--font-weight-heading-jp);
    line-height: var(--line-height-heading);
    color: var(--color-heading-jp);
    z-index: 1;
}

.btn {
    display: inline-block;
    background-color: var(--color-btn-bg);
    font-weight: var(--font-weight-btn);
    color: var(--color-btn-text);
    text-align: center;
}

/* == Header == */
.header {
    position: fixed;
    top: -64px;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 100;
    width: 100vw;
    height: 64px;
    padding-left: 50px;
    background-color: var(--color-header);
    transition: top 0.6s ease;
}

/* kvスクロール後にheader表示 */
.header--visible {
    top: 0;
}

.header__copy {
    font-size: 0.8125rem;/* 13px */
    font-weight: 700;
    line-height: 1;
    color: var(--color-white);
}

.header__accent {
    color: var(--color-accent);
}

.header__portfolio {
    font-size: 1.25rem;/* 20px */
    font-weight: 700;
    line-height: 1;
    color: var(--color-white);
}

.header__name {
    font-size: 1rem;/* 16px */
    font-weight: 500;
    line-height: 1;
    color: var(--color-white);
}

/* == Nav == */

.nav {
    position: fixed;
    bottom: 0;
    z-index: 100;
}

.nav__list {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 4px;
    width: 100vw;
    height: 100%;
}

.nav__link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav__item {
    width: calc(100% / 4);
    height: 61px;
    background-color: var(--color-nav);
    border-radius: var(--border-radius-nav) var(--border-radius-nav) 0 0;
    transition: 0.4s;
    color: var(--color-nav-text);
}

.nav__item:hover {
    height: 66px;
    background-color: var(--color-selected);
}

/* nav active表示 */
.nav__item.active {
    height: 66px;
    background-color: var(--color-selected);
}

.nav__text-en {
    font-size: var(--font-nav-en);
    font-weight: var(--font-weight-nav-en);
}

.nav__text-jp {
    padding-left: 10px;
    font-size: var(--font-nav-jp);
    font-weight: var(--font-weight-nav-jp);
}

/* == Kv == */
.kv {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-base);
}

.kv::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 20%;
  z-index: -1;
  width: 420px;
  height: 420px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

.kv::after {
  content: "";
  position: absolute;
  bottom: 20%;
  right: 25%;
  z-index: -1;
  width: 280px;
  height: 280px;
  background: var(--color-selected);
  border-radius: 50%;
  animation: float 5s ease-in-out infinite;
}

.kv__copy {
    display: block;
    font-size: 2.25rem;/* 36px */
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.kv__accent {
    color: var(--color-accent);
}

.kv__portfolio {
    display: block;
    margin-top: 20px;
    font-size: 1.5rem;/* 24px */
    font-weight :700;
    line-height: 1;
    text-align: center;
}

.kv__name {
    display: block;
    margin-top: 10px;
    line-height: 1;
    font-size: 1.125rem;/* 18px */
    text-align: center;
}

/* == Works == */
.works__list {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 100px;
}

.works__featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.work-card {
    display: flex;
}

.work-card__img-area {
    flex: 0 0 50%;
    background-color: var(--color-img-area);
    padding: 10px;
}

.work-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.work-card__body {
    flex: 1;
    min-width: 0;
    background-color: var(--color-primary);
}

.work-card__body--lg {
    position: relative;
    overflow-y: scroll;
    padding: 50px 50px 150px;
}

.work-card__title--lg {
    font-size: 0.875rem;/* 14px */
    font-weight: var(--font-weight-h3);
}

.work-card__concept {
    font-size: 1.25rem;/* 20px */
    font-weight: var(--font-weight-h3);
}

.work-card__desc {
    margin-top: var(--spacing-md);
}

.work-card__meta {
    margin-top: var(--spacing-md);
}

.work-card__meta-term {
    display: block;
    width: fit-content;
    padding: 5px 20px;
    margin-top: var(--spacing-sm);
    background-color: var(--color-label);
    font-size: var(--font-label);
    font-weight: var(--font-weight-label);
    line-height: 1;
}

.work-card__meta-desc {
    padding-left: 20px;
}

.work-card__meta-link {
    transition: 0.2s ease ;
}

.work-card__meta-link:hover {
    color: var(--color-accent);
}

.btn--lg {
    display: none;/* モーダル実装まで */
    position: absolute;
    bottom: 30px;
    right: 50px;
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-circle);
}

.works__other {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: var(--spacing-xl);
}

.work-card--sm {
    flex-direction: column;
    height: 650px;
}

.work-card__img-area--sm {
    flex: 0 0 40%;
}

.work-card__body--sm {
    position: relative;
    overflow-y: scroll;
    padding: 20px 20px 120px;
}

.work-card__title--sm {
    font-size: 1.125rem;/* 18px */
    font-weight: var(--font-weight-h3);
}

.btn--sm {
    display: none;/* モーダル実装まで */
    position: absolute;
    right: 20px;
    bottom: 15px;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-circle);
    font-size: var(--font-btn-sm);
}

/* == Skill == */
.skill {
    background-image: url(../images/bg-cream.jpg);
}

.skill__list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 100px;
}

.skill-card {
    overflow-y: scroll;
    height: 250px;
    padding: 40px;
    background-color: var(--color-primary);
}

.skill__row {
    display: flex;
    gap: 20px;
}

.skill-card__icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.skill-card__name {
    font-size: 1rem;/* 16px */
    font-weight: 600;
    line-height: 50px;
}

.skill-card__list {
    margin-top: var(--spacing-xs);
    padding-left: 20px;
    list-style-type: disc;
}

/* == Learning == */
.learning__swiper {
    margin: 0 auto;
    padding: 50px 0 80px;
}

.learning__item {
    display: flex;
    justify-content: center;
    width: 350px;
}

.learning-card {
    text-align: center;
}

.learning__img {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-circle);
    object-fit: cover;
}

.learning-card__name {
    margin-top: var(--spacing-sm);
    font-size: 1rem;/* 16px */
    font-weight: var(--font-weight-h3);
}

.learning-card__desc {
    margin-top: var(--spacing-sm);
}

.btn--pill {
    display: none;/* モーダル実装まで */
    width: 180px;
    height: 40px;
    margin-top: var(--spacing-sm);
    border-radius: var(--border-radius-pill);
}

/* learning-swiper */
.swiper-slide {
    transition: transform 0.6s;
}

.swiper-slide {
    opacity: 0.5;
    transition: all 0.6s;
}

.swiper-slide-active {
    opacity: 1;
    scale: 1.1;
}

.swiper-button-prev,
.swiper-button-next {
    color: transparent;  
    width: 50px;
    height: 50px;
    padding: 15px;
    transition: 0.2s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    scale: 1.05;
}

.swiper-button-prev {
    left: 25% !important;
    background-image: url(../images/arrow-left.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateX(-50%) !important;
}

.swiper-button-next {
    right: 25% !important;
    background-image: url(../images/arrow-right.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateX(50%) !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--color-diff);
}

/* == Profile == */
.about {
    background-image: url(../images/bg-cream.jpg);
}

.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 0 100px;
}

.profile__img {
    width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-circle);
}

.profile__name-en {
    font-size: 2.25rem;/* 36px */
    font-weight: 900;
    line-height: 1;
    color: var(--color-accent);
}

.profile__name-jp {
    font-size: 1rem;/* 16px */
    font-weight: 600;
    line-height: 1;
    color: var(--color-accent);
}

.profile__meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.profile__meta-item {
    display: flex;
    gap: 15px;
}

.profile__meta-term {
    width: 120px;
    height: 26px;
    background-color: var(--color-primary);
    font-size: 1rem;/* 16px */
    font-weight: 600;
    line-height: 26px;
    text-align: center;
}

.profile__meta-desc {
    font-size: 1rem;/* 16px */
    font-weight: 600;
    line-height: 26px;
}

.career {
    padding: 0 100px;
}

.career__wrapper {
    max-width: 1240px;
    margin: 70px auto;
    background-color: var(--off-white);
    border-top: solid 3px var(--color-primary);
    border-bottom: solid 4px var(--color-primary);
}

.career__meta-item {
    display: flex;
    padding: var(--spacing-md) var(--spacing-xl);
    border-top: solid 1px var(--color-primary);
}

.career__meta-date {
    flex: 0 0 200px;
}

.career__meta-info {
    flex: 1;
    font-size: 1rem;/* 16px */
    font-weight: 700;
}

.career__label {
    margin-top: var(--spacing-xs);
    padding-left: 5px;
    border-left: solid 5px var(--color-accent);
    font-size: 0.875rem;/* 14px */
    line-height: 1.2;
}

.career__list {
    margin-top: var(--spacing-xs);
    list-style-type: disc;
}

.career__item {
    margin-left: 15px;
    font-size: 0.875rem;/* 14px */
    font-weight: 400;
}

.philosophy {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 100px;
}

.philosophy__title {
    text-align: center;
    z-index: 1;
}

.philosophy__en {
    display: block;
    font-size: 1.75rem;/* 28px */
    font-weight: var(--font-weight-heading-en);
    line-height: 1;
    color: var(--blue-800);
}

.philosophy__jp {
    display: block;
    margin-top: 10px;
    font-size: 1rem;/* 16px */
    font-weight: var(--font-weight-heading-jp);
    line-height: 1;
    color: var(--blue-800);
}

.philosophy__text {
    margin: var(--spacing-xl) 0 0;
    font-weight: 500;
    text-align: center;
}

.philosophy__accent {
    font-size: 1rem;
    font-weight: 600;
    line-height: 2.1;
}

.philosophy__emphasis {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 2.1;
    color: var(--color-accent);
}

/* == Footer == */
.footer {
    width: 100%;
    height: 400px;
    padding: 70px 50px;
    background-color: var(--color-primary);
    text-align: center;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: var(--spacing-md);
}

.footer__item {
    font-size: var(--font-nav-en);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    text-align: end;
}

.footer__item:hover {
    color: var(--color-accent);
}

small {
    color: var(--color-dark);
}

/* == Animation == */
@keyframes float {
  0% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-20px);
    opacity: 0.6;
  }

  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
}