@charset "UTF-8";

:root {
  --mainColor: #333;
  --subColor: #eeeeee;
  --subColor-2: #ecf5fa;
  --accentColor: #455c81;
  --mainFont: "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN W3",
    "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  --accentFont: "Unna", serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}

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

img {
  vertical-align: bottom;
  object-fit: cover;
  object-position: center;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  font-family: var(--mainFont);
  font-size: 1.6rem;
  line-height: 1.8;
  background-color: #fff;
  @media (max-width: 765px) {
    font-size: 1.4rem;
  }
}

.sp-br {
  display: none;
  @media (max-width: 765px) {
    display: block;
  }
}
.pc-br {
  @media (max-width: 1000px) {
    display: none;
  }
}

/* ===============================================
# title-style
=============================================== */
/* column-title */
.column-title {
  margin-bottom: 32px;
  font-family: var(--accentFont);
  &.column-title_align_center {
    text-align: center;
  }
  .column-title__en {
    font-size: 3.6rem;
    line-height: 1;
    letter-spacing: 0.2em;
  }
  .column-title__en_size_large {
    font-size: 7rem;
  }
  .column-title__ja {
    letter-spacing: 0.2em;
  }
  .column-title__en-sub {
    font-size: 1.8rem;
    letter-spacing: 0.2em;
  }
  .frame-title {
    margin-top: 24px;
  }

  @media (max-width: 765px) {
    .column-title__en {
      font-size: 3.2rem;
    }
    .column-title__en_size_large {
      font-size: 3.6rem;
    }
    .column-title__en-sub {
      font-size: 1.2rem;
    }
  }
}

/* row-title */
.row-title {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  .row-title__en {
    position: relative;
    font-family: var(--accentFont);
    letter-spacing: 0.1em;
    text-align: center;
    font-size: 3.6rem;
    line-height: 1;
    padding-left: 24px;
    &::before {
      position: absolute;
      inset: 0 auto auto 0;
      content: "";
      width: 12px;
      height: 100%;
      background-color: var(--subColor-2);
    }
  }
  .row-title__ja {
    position: relative;
    padding-inline: 28px;
    letter-spacing: 0.1em;
    &::before,
    &::after {
      position: absolute;
      content: "";
      width: 12px;
      height: 1px;
      background-color: var(--mainColor);
      transform: translateY(-50%);
    }
    &::before {
      inset: 50% auto auto 0;
    }
    &::after {
      inset: 50% 0 auto auto;
    }
  }
  @media (max-width: 765px) {
    .row-title__en {
      /* font-size: 2.8rem; */
      font-size: 2rem;
    }
    .row-title__ja {
      font-size: 1.2rem;
    }
  }
}

/* frame-title */
.frame-title {
  position: relative;
  font-family: var(--accentFont);
  letter-spacing: 0.1em;
  text-align: center;
  font-size: 2rem;
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 14px 20px;
  &.frame-title_size_large {
    font-size: 2.4rem;
    @media (max-width: 765px) {
      font-size: 1.8rem;
    }
  }
  &.frame-title_pd_none {
    padding: 0;
  }
  span {
    position: absolute;
    display: inline-block;
    height: 100%;
    &:nth-of-type(1) {
      inset: 0 auto auto 0;
      &::before {
        inset: 0 auto auto 0;
        border-right-color: transparent;
        border-bottom-color: transparent;
      }
      &::after {
        inset: auto auto 0 0;
        border-top-color: transparent;
        border-right-color: transparent;
      }
    }
    &:nth-of-type(2) {
      inset: 0 0 auto auto;
      &::before {
        inset: 0 0 auto auto;
        border-left-color: transparent;
        border-bottom-color: transparent;
      }
      &::after {
        inset: auto 0 0 auto;
        border-top-color: transparent;
        border-left-color: transparent;
      }
    }
    &::before,
    &::after {
      position: absolute;
      content: "";
      border: 1px solid rgba(0, 0, 0, 0.4);
      width: 12px;
      aspect-ratio: 1;
    }
  }
  @media (max-width: 765px) {
    font-size: 1.4rem;
  }
}

/* ===============================================
# parts-object
=============================================== */
/* target-blank-icon */
i.fa-solid.fa-arrow-up-right-from-square {
  margin-left: 4px;
}

/* logo */
.logo {
  text-align: center;
  font-size: 1.8rem;
  line-height: 1;
  font-family: var(--accentFont);
  letter-spacing: 0.2em;
  span {
    display: block;
    font-size: 1.2rem;
  }
  &.current {
    pointer-events: none;
  }
}
/* view-more-btn */
.view-more-btn {
  position: relative;
  display: block;
  margin-top: 32px;
  padding: 8px 24px 8px 16px;
  font-family: var(--accentFont);
  width: 120px;
  transition: 0.3s;
  --right: 0px;
  &::before {
    position: absolute;
    inset: auto var(--right) 0 auto;
    content: "";
    width: 100%;
    height: 1px;
    background-color: var(--mainColor);
    transition: 0.3s;
  }
  &::after {
    position: absolute;
    inset: auto var(--right) 0 auto;
    content: "";
    width: 10%;
    height: 1px;
    background-color: var(--mainColor);
    transform-origin: bottom right;
    transform: rotate(45deg);
    transition: 0.3s;
  }
  &:hover {
    --right: -8px;
  }
  @media (max-width: 765px) {
    margin-top: 16px;
  }
}
/* link-btn */
.link-btn {
  position: relative;
  display: inline-block;
  width: 240px;
  padding-inline: 16px;
  height: 64px;
  border: 1px solid var(--mainColor);
  line-height: 64px;
  transition: background-color 0.3s;
  background-color: #fff;
  --translateX: 24px;
  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 50px;
    right: -7px;
    height: 1px;
    background-color: var(--mainColor);
    transition: 0.3s;
  }
  &::before {
    width: 60px;
    transform: translate(var(--translateX), 0px);
  }
  &::after {
    width: 15px;
    transform-origin: right center;
    transform: translate(var(--translateX), 0px) rotate(25deg);
  }
  &:hover {
    --translateX: 32px;
    background-color: rgba(69, 92, 129, 0.4);
  }
}
/* slash-list */
.slash-list {
  display: flex;
  li {
    padding-inline: 8px;
    letter-spacing: 0.1em;
    font-family: var(--accentFont);
  }
  li + li {
    position: relative;
    padding-left: 12px;
    &::before {
      position: absolute;
      inset: 0 auto auto 0;
      content: "/";
    }
  }
}
/* hover-content */
.hover-content {
  position: relative;
  transition: 0.3s;
  .hover-content__body {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    h3:not(.frame-title) {
      font-size: 2rem;
      letter-spacing: 0.1em;
      font-family: var(--accentFont);
    }
    .view-more-btn {
      position: absolute;
      inset: auto 20px 20px auto;
      @media (max-width: 1000px) {
        position: relative;
        inset: auto;
      }
    }
  }
  &:hover {
    scale: 1.04;
    transition: 0.4s;
  }
  &:hover .hover-content__body {
    opacity: 1;
    visibility: visible;
  }
  @media (max-width: 765px) {
    .card-list__item-img {
      height: 240px;
    }
    .slash-list,
    .skill-icons {
      display: none;
    }
  }
}

/* card-list */
.card-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  &.card-list_nowrap {
    flex-wrap: nowrap;
    .card-list__item {
      margin-inline: 8px;
    }
  }
  .card-list__item {
    width: min(100%, 350px);
    &.card-list__item_narrow {
      width: 300px;
      margin-bottom: 32px;
      .card-list__item-img {
        height: 180px;
      }
    }
    &.card-list__item_shadow {
      box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    }
  }
  .card-list__item_view-more .card-list__item-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 260px;
  }
  .card-list__item_view-more .view-more-btn {
    margin: 0;
    width: 180px;
    font-size: 2rem;
  }

  .card-list__item_view-more .card-list__item-inner:hover .view-more-btn {
    --right: -8px;
  }
  .card-list__item-inner {
    display: block;
  }
  .card-list__item-img {
    width: 100%;
    height: 260px;
  }
  .card-list__item-body {
    padding: 24px 12px 12px 12px;
  }
  @media (max-width: 765px) {
    gap: 0px;
    .card-list__item {
      margin-bottom: 32px;
    }
    .card-list__item.card-list__item_narrow {
      width: 100%;
    }
  }
}

.work-item img {
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}
.work-item .hover-content__body {
  width: 100%;
  height: auto;
  position: relative;
  inset: auto;
  transform: none;
  opacity: 1;
  visibility: visible;
  padding: 16px 0px;
  background-color: transparent;
}

/* media */
.media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  &.media_row_reverse {
    flex-direction: row-reverse;
  }
  .media__img-wrapper {
    width: 250px;
    height: 350px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .media__body {
    width: 55%;
    padding: 60px;
    background-color: var(--subColor);
  }
  .media__text + .media__text {
    margin-top: 24px;
  }
  @media (max-width: 765px) {
    display: block;
    position: relative;
    padding-top: 70px;
    .column-title {
      text-align: right;
    }
    .media__img-wrapper {
      width: 110px;
      height: auto;
      aspect-ratio: 0.7;
      margin-left: 0;
      position: absolute;
      inset: 0px auto auto 60px;
      &.media__img-wrapper_size_large {
        width: 200px;
        inset: 0 auto auto 50%;
        transform: translateX(-50%);
        & + .media__body {
          padding-top: 280px;
          padding-bottom: 80px;
        }
      }
    }
    .media__body {
      width: 100%;
      padding: 32px 20px;
    }
  }
}

.skill-icons {
  i {
    font-size: 3.2rem;
    margin: 8px;
    vertical-align: bottom;
  }
  span {
    display: inline-block;
    width: 32px;
    aspect-ratio: 1;
    background-color: var(--mainColor);
    color: white;
    text-align: center;
    line-height: 32px;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 8px;
  }
  @media (max-width: 1000px) {
    text-align: center;
    i {
      font-size: 2.8rem;
    }
    span {
      width: 26px;
      height: 26px;
      line-height: 26px;
      font-size: 1.4rem;
    }
  }
}

/* ===============================================
# framework
=============================================== */
.header {
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 70px;
  inset: 0 auto auto 0;
  .header__inner {
    width: min(calc(100% - 40px), 1000px);
    height: 100%;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  &.is-active {
    .global-menu {
      transform: translateX(0%);
    }
    .global-menu-btn {
      --opacty: 0;
      --rotate: 135deg;
      --translate: 0rem;
    }
    .global-menu-bg {
      visibility: visible;
      opacity: 1;
    }
  }
}

.container:not(:has(.main-visual)) {
  margin-top: 195px;
  @media (max-width: 765px) {
    margin-top: 120px;
  }
}

.sec {
  margin-top: 120px;
  &:last-child:not(.sec_bg-color) {
    margin-bottom: 120px;
    @media (max-width: 765px) {
      margin-bottom: 70px;
    }
  }
  &.sec_narrow {
    .sec__inner {
      /* width: min(calc(100% - 40px), 600px); */
      width: min(calc(100% - 40px), 800px);
    }
  }
  &.sec_bg-color {
    background-color: var(--subColor-2);
    padding-block: 120px;
    @media (max-width: 765px) {
      padding-block: 60px;
    }
  }
  &.sec_align_center {
    text-align: center;
  }
  .sec__inner {
    width: min(calc(100% - 40px), 1000px);
    margin-inline: auto;
  }
  .view-more-btn {
    margin-inline: auto 0;
  }
  .link-btn {
    margin-top: 32px;
  }
  @media (max-width: 765px) {
    margin-top: 70px;
  }
}
.main-visual + .sec {
  margin-top: 195px;
  @media (max-width: 765px) {
    margin-top: 120px;
  }
}

.footer {
  text-align: center;
  height: 40px;
  line-height: 40px;
  background-color: var(--subColor);
  .copy {
    font-size: 1rem;
  }
}

/* ===============================================
# section-object
=============================================== */
.global-menu {
  height: 100%;
  display: inline-block;
  .global-menu__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    .global-menu__item {
      position: relative;
      --scaleX: 0;
      transition: 0.2s;
      &::before {
        position: absolute;
        inset: auto auto 6px 0;
        content: "";
        width: 100%;
        height: 1px;
        background-color: rgba(0, 0, 0, 0.4);
        transform-origin: center center;
        transform: scaleX(var(--scaleX));
        transition: 0.2s;
      }
      a {
        display: inline-block;
        font-family: var(--accentFont);
        letter-spacing: 0.2em;
        padding: 8px;
      }
      &:hover,
      &:has(.current) {
        color: rgba(0, 0, 0, 0.4);
        --scaleX: 1;
      }
      &:has(.current) {
        pointer-events: none;
      }
    }
  }
  @media screen and (max-width: 765px) {
    position: fixed;
    z-index: 998;
    inset: 0 0 auto auto;
    display: block;
    width: 75vw;
    height: calc(100vh);
    transform: translateX(100%);
    transition: all 0.3s ease-out;
    background-color: #fff;
    .global-menu__inner {
      flex-direction: column;
      padding-top: 160px;
    }
    .global-menu__item a {
      font-size: 1.8rem;
    }
  }
}

.global-menu-btn {
  z-index: 999;
  display: none;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border: none;
  background-color: transparent;
  --opacty: 1;
  --rotate: 0deg;
  --translate: 0.5rem;
  span {
    display: block;
    width: 70%;
    height: 2px;
    background-color: #333;
    grid-area: 1/1/-1/-1;
    transition: 0.3s;
  }
  span:nth-child(1) {
    opacity: var(--opacty);
  }
  span:nth-child(2) {
    rotate: var(--rotate);
    translate: 0 calc(var(--translate) * -1);
  }
  span:nth-child(3) {
    rotate: calc(var(--rotate) * -1);
    translate: 0 var(--translate);
  }
  @media (max-width: 765px) {
    display: grid;
  }
}

.global-menu-bg {
  position: fixed;
  z-index: 997;
  inset: 0 auto auto 0;
  width: 100%;
  height: calc(100vh);
  visibility: hidden;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease-out;
}

.main-visual {
  position: relative;
  width: min(calc(100% - 40px), 1000px);
  margin-inline: auto;
  height: 500px;
  color: white;
  margin-top: 100px;
  &::after {
    position: absolute;
    inset: 0 0 auto auto;
    content: "";
    width: 70%;
    height: 100%;
    background-image: url(images/main.jpg);
    background-size: cover;
    background-position: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
  }
  &::before {
    position: absolute;
    inset: auto auto -75px 0;
    content: "";
    width: 70%;
    height: 80%;
    background: linear-gradient(
      90deg,
      rgba(2, 6, 19, 1) 0%,
      rgba(27, 40, 60, 1) 42%,
      rgba(35, 62, 78, 1) 100%
    );
  }
  .column-title {
    margin-bottom: 24px;
  }
  .main-visual__content {
    position: absolute;
    inset: auto auto 10% 10%;
    text-align: center;
    z-index: 1;
    font-family: var(--accentFont);
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
  }
  @media (max-width: 765px) {
    height: 400px;
    margin-bottom: 100px;
    &::after {
      height: 80%;
    }
    &::before {
      inset: auto auto 0 0;
    }
    .main-visual__content {
      inset: 40% auto auto 10%;
    }
    .column-title {
      margin-bottom: 12px;
    }
  }
}

.work-content__images {
  margin-bottom: 80px;
}

.work-content__img-wrapper {
  margin-bottom: 24px;
  border: 1px solid #ddd;
  img {
    width: 100%;
    height: auto;
  }
}

.work-content + .card-list {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #ddd;
}

.career {
  width: min(100%, 880px);
  margin-inline: auto;
  .career__item-head {
    position: relative;
    width: 90px;
    padding-inline: 12px 12px;
    border-right: 2px solid var(--subColor);
    &::after {
      position: absolute;
      inset: 8px 0 auto auto;
      transform: translateX(calc(50% + 1px));
      content: "";
      width: 12px;
      aspect-ratio: 1;
      border-radius: 50%;
      background-color: var(--accentColor);
    }
  }
  .career__item-body {
    padding-left: 32px;
    padding-bottom: 32px;
  }
  @media (max-width: 765px) {
    .career__item {
      display: flex;
      flex-direction: column;
      margin-bottom: 24px;
    }
    .career__item-head {
      border: none;
      padding-inline: 24px 0;
    }
    .career__item-head::after {
      inset: 7px auto auto 0;
    }
    .career__item-body {
      padding: 12px;
    }
    .career__item-txt br {
      display: none;
    }
  }
}

/* select-bar */
.select-bar__wrapper {
  position: fixed;
  top: 400px;
  left: 50%;
  transform: translateX(-500px);
  z-index: 998;
  .select-bar {
    position: relative;
    font-size: 2rem;
    font-family: var(--accentFont);
    margin-bottom: 24px;
    padding-left: 32px;
    color: rgba(0, 0, 0, 0.4);
    transition: color 0.3s ease-out;
    &::before,
    &::after {
      position: absolute;
      inset: 50% auto auto 0;
      content: "";
      background-color: rgba(0, 0, 0, 0.4);
    }
    &::before {
      transform: translateY(-50%);
      width: 12px;
      height: 1px;
    }
    &::after {
      transform: translate(6px, -6px);
      width: 1px;
      height: 12px;
    }
    &:hover {
      color: var(--mainColor);
      &::before,
      &::after {
        background-color: var(--mainColor);
      }
    }
    &:has(.current):not(.select-bar_in-page) {
      color: var(--mainColor);
      a {
        pointer-events: none;
      }
      &::before {
        background-color: var(--mainColor);
      }
      &::after {
        display: none;
      }
    }
    a {
      display: inline-block;
      padding: 4px;
    }
  }
  @media (max-width: 1000px) {
    display: none;
  }
}

.work-summary {
  tr {
    display: block;
  }
  tr + tr {
    margin-top: 32px;
  }
  th {
    width: 160px;
    color: rgba(0, 0, 0, 0.4);
  }
  td {
    span {
      display: inline-block;
      padding-right: 12px;
    }
    span + span {
      position: relative;
      padding-left: 12px;
      &::before {
        position: absolute;
        inset: 10% auto auto 0;
        content: "";
        height: 80%;
        width: 1px;
        transform: rotate(25deg);
        background-color: var(--mainColor);
      }
    }
    a:hover {
      color: rgba(0, 0, 0, 0.4);
    }
  }
  @media (max-width: 765px) {
    th {
      width: 100px;
    }
    td:not(.td-row) {
      display: block;
      padding: 8px 0px 8px 12px;
    }
  }
}
