@charset 'utf-8';

/*----------------------------------------
	reset
----------------------------------------*/
*,
::before,
::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

* {
  font-size: inherit;
  line-height: inherit;
}

::before,
::after {
  text-decoration: inherit;
  vertical-align: inherit;
}

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
dialog,
figure,
footer,
header,
main,
menu,
nav,
section,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

header,
footer,
article,
section,
aside,
main,
nav,
menu,
figure,
figcaption {
  display: block;
}

span,
small,
strong,
em,
b,
i {
  color: inherit;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: top;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption,
th {
  text-align: left;
}

input,
select {
  vertical-align: middle;
}

input,
textarea {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

q::before,
q::after {
  display: none;
}

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

/*---------------------
base
----------------------*/
:root {
  --light-blue: #70c1ff;
  --blue: #007aff;
  --light-grey: #eee;
  --dark-grey: #575757;
  --black: #030202;
  --white: #fff;
  --font-chivo: "Chivo", sans-serif;
  --font-noto-sans: "Noto Sans JP", sans-serif;
}

body.index-page #root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero {
  position: relative;
  height: 100svh;
}

.hero__title {
  position: absolute;
  top: clamp(80px, 20vh, 250px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: calc(1280px - 20px * 2);
  padding-inline: 20px;
  color: var(--white);
  font-family: var(--font-chivo);
  font-size: clamp(3rem, 6vw, 6.25rem);
  font-weight: 700;
  line-height: 1.8;
  z-index: 10;
}
/*---------------------
header
----------------------*/
.header {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  max-width: calc(1280px - 20px * 2);
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
}

.logo a {
  margin: 0;
  padding: 20px 0;
  display: block;
  transform: translateX(0);
  font-family: var(--font-noto-sans);
  font-size: clamp(1.8rem, 2.7vw, 2.5rem);
  line-height: 1.5;
  font-weight: 700;
  color: var(--white);
}

.page-works .logo a,
.page-about .logo a {
  color: var(--black);
}

/*---------------------
menu
----------------------*/
.menu {
  color: var(--white);
  padding: 20px 0;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-family: var(--font-noto-sans);
  line-height: 1.5;
  font-weight: 700;
  display: block;
  text-transform: capitalize;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.page-works .menu,
.page-about .menu {
  color: var(--black);
}

#menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  padding: 3rem 2rem 2rem;
  width: max(32vw, 20rem);
  height: 100svh;
  background-color: var(--light-grey);
  box-shadow: 0 0 2rem var(--white);
  opacity: 1;
  translate: 100vw;
}

#menu-close {
  width: 30px;
  height: 18px;
  display: block;
  margin-left: auto;
  position: relative;
  z-index: 200;
  border: none;
  cursor: pointer;
}

.bar::before,
.bar::after {
  content: "";
  width: 30px;
  height: 4px;
  background: var(--black);
  position: absolute;
  right: 0;
}
.bar::before {
  rotate: 45deg;
  top: 8.5px;
}
.bar::after {
  rotate: -45deg;
  top: 8.5px;
}

.menu-list {
  list-style: none;
}
.menu-list li {
  margin: 2rem 0;
  opacity: 0;
}
.menu-list a {
  color: var(--black);
  text-decoration: none;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-family: var(--font-chivo);
  font-weight: 700;
  text-transform: capitalize;
}

/*---------------------
 Contact Icon(Font Awesome) 
 ---------------------*/
.fa-envelope {
  font-size: clamp(1.2rem, 2vw, 2rem);
}

/*---------------------
 Common style
 ---------------------*/
.wrapper {
  margin: 2.7vh auto 0;

  @media (768px <= width), print {
    margin-top: 5vh;
  }
}

.section__title {
  padding-bottom: 1rem;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 1px;
    background-color: var(--black);
    transform: translateX(-50%);
    left: 50%;
  }

  @media (768px <= width), print {
    max-width: calc(1280px - 20px * 2);
  }
}
.section__title--en {
  font-family: var(--font-chivo);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 3.8px;
  text-transform: capitalize;

  @media (768px <= width), print {
    font-size: max(2.5rem, 3vw);
  }
}
.section__title--ja {
  margin-top: 14px;
  font-family: var(--font-noto-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.12px;

  @media (990px <= width), print {
    font-size: 18px;
  }
}

.hidden-pc {
  display: block;
  @media (768px <= width), print {
    display: none;
  }
}

.hidden-sp {
  display: none;
  @media (768px <= width), print {
    display: block;
  }
}

/*---------------
Loading
---------------*/
#loading {
  background-color: var(--black);
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}
#loading-screen {
  background-color: var(--light-blue);
  position: fixed;
  inset: 0;
  z-index: 9998;
  translate: 100vw 0;
}

#loading p {
  font-size: 1.5rem;
  font-family: var(--font-noto-sans);
  font-weight: 500;
  text-transform: capitalize;
  color: #fff;
}

