@import url("https://fonts.googleapis.com/css2?family=Rethink+Sans:wght@400;600&display=swap");

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

::selection {
  background: var(--line);
}

body {
  z-index: 1;
  margin: 0;
  font-family: "Rethink Sans", sans-serif;
  color: var(--dark);
  background: var(--white);
}

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

img.logo {
  width: 40%;
}

a {
  text-decoration: unset;
  color: inherit;
  transition: .2s;
}

/*====================================================================================================
ROOT
====================================================================================================*/
:root {
  /*----------colors----------*/
  --white: #ffffff;
  --dark: #222222;
  --light: #eeeeee;
  --shade-dark: rgba(34 34 34 / .5);
  --shade-light: rgba(255 255 255 / .8);
  --line: rgba(128 128 128 / .2);

  /*----------gap----------*/
  --section-gap: 2rem;
  /*--div-gap: 6rem;*/
  --item-gap: 4rem;
  --thin-gap: 2rem;

  /*----------fonts----------*/
  --h1: 2.8rem;
  --h2: 2.5rem;
  --h3: 1.5rem;
  --p: 1rem;
  --small: .8rem;

  /*----------weights----------*/
  --strong: 600;
  --regular: 400;
  --blur: blur(1rem);
}

/*====================================================================================================
FONTS
====================================================================================================*/
b,
strong {
  font-weight: var(--strong);
}

h1 {
  margin: 0;
  font-size: var(--h1);
  font-weight: var(--strong);
}

h2 {
  margin: 0;
  font-size: var(--h2);
  font-weight: var(--strong);
}

h3 {
  margin: 0;
  font-size: var(--h3);
  font-weight: var(--strong);
}

p {
  margin: 0;
  font-size: var(--p);
  font-weight: var(--regular);
  line-height: 1.8rem;
}

small {
  margin: 0;
  font-size: var(--small);
  font-weight: var(--regular);
}

/*====================================================================================================
HEADER
====================================================================================================*/
#header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: calc(var(--thin-gap) / 2) 0;
  background: var(--shade-light);
  backdrop-filter: var(--blur);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  width: 80vw;
  margin: 0 auto;
}

#menu {
  margin: 0;
}

#menu span {
  display: flex;
  gap: calc(var(--thin-gap) / 2);
  align-items: center;
  align-items: center;
  flex-direction: row;
}

#menu span .sec-button {
  background: unset;
}

#menu span .sec-button:hover {
  background: var(--line);
}

#btn-mobile {
  display: none;
}

/*====================================================================================================
BUTTONS
====================================================================================================*/
#button {
  padding: calc(var(--thin-gap) / 2.5) calc(var(--thin-gap) / 1.5);
  /*font-size: var(--small);*/
  font-weight: var(--strong);
  border-radius: var(--section-gap);
}

#button:hover {
  transform: scale(1.05);
}

.main-button {
  color: var(--white);
  background: var(--dark);
}

.detail-button {
  color: var(--#333333);
  background-color: #FEF138;
}

.sec-button {
  color: inherit;
  background: var(--line);
}

.sec-button-portfolio {
  color: inherit;
  background: var(--line);
  background-color: #FFD812;
}

/*====================================================================================================
BUILDING BLOCKS
====================================================================================================*/
section {
  display: flex;
  gap: var(--section-gap);
  flex-direction: column;
  padding: var(--section-gap) 0;
}

.container {
  display: flex;
  gap: var(--div-gap);
  flex-direction: column;
  max-width: 1400px;
  width: 60vw;
  margin: 0 auto;
}

.grid-div {
  display: grid;
  gap: var(--thin-gap);
  grid-template-columns: repeat(3, 1fr);
}

.hor-item {
  display: flex;
  gap: var(--item-gap);
  align-items: center;
  flex-direction: row;
}

.hor-item>* {
  flex: 1;
}

.ver-item {
  display: flex;
  /*gap: var(--item-gap);*/
  align-items: flex-start;
  flex-direction: column;
}

.hor-thin {
  display: flex;
  gap: var(--thin-gap);
  align-items: center;
  flex-direction: row;
  margin-top: 30px;
}

.ver-thin {
  display: flex;
  gap: var(--thin-gap);
  align-items: flex-start;
  flex-direction: column;
}

.hollow {
  width: 80%;
  height: 100%;
}

/*====================================================================================================
CUSTOM BLOCKS
====================================================================================================*/
#hero .hor-item>* {
  flex: unset;
}

#info {
  gap: calc(var(--thin-gap) / 2);
}

#footer {
  gap: unset;
  padding: unset;
  background: var(--line);
}

#about {
  padding: var(--section-gap) 0 var(--item-gap);
}

#copyrights {
  padding: var(--item-gap) 0;
}

#copyrights .hor-item {
  justify-content: space-between;
}

#copyrights .hor-item>* {
  flex: unset;
}

#hor-social {
  gap: calc(var(--thin-gap) / 4);
}

#hor-social a {
  padding: calc(var(--thin-gap) / 4);
  border-radius: var(--section-gap);
}

#hor-social a:hover {
  background: var(--line);
  transform: scale(1.1);
}

.text-desc {
  opacity: .5;
}

.work-thumb {
  aspect-ratio: 1 / 1;
  background-position: center;
  background-size: cover;
}

.work-thumb-overlay {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  width: 100%;
  height: 100%;
  color: var(--white);
  background: var(--shade-dark);
  backdrop-filter: var(--blur);
  transition: .2s;
}

.work-thumb:hover .work-thumb-overlay {
  opacity: 1;
}

.avatar-img-div {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-position: center;
  background-size: cover;
}

/*====================================================================================================
RESPONSIVE
====================================================================================================*/
@media (max-width: 1600px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 800px) {
  :root {
    --h1: 2.0rem;
    --h2: 2.4rem;
    --h3: 1.8rem;
    --h4: 1.4rem;
    --p: 1rem;
    --small: .8rem;
    --section-gap: 4rem;
    --div-gap: 4rem;
    --item-gap: 2rem;
    --thin-gap: 1rem;
  }

  @media (max-width: 800px) {
    img.logo {
      width: 100%;
    }
  }

  /*---------- buttons ----------*/
  #button {
    padding: var(--thin-gap) calc(var(--thin-gap) * 2);
  }

  /*---------- main elements ----------*/
  .hor-item {
    row-gap: var(--item-gap);
    align-items: flex-start;
    flex-direction: column;
  }

  .hor-thin {
    row-gap: var(--thin-gap);
    align-items: center;
    flex-wrap: wrap;
    column-gap: var(--thin-gap);
  }

  .ver-item {
    display: flex;
    row-gap: var(--item-gap);
    flex-direction: column;
  }

  .ver-thin {
    display: flex;
    row-gap: var(--thin-gap);
    flex-direction: column;
  }

  .grid-div {
    grid-template-columns: repeat(1, 1fr);
  }

  .hollow {
    display: none;
  }

  /*---------- custom elements ----------*/
  #copyrights .hor-item {
    flex-direction: column-reverse;
  }

  /*-------------------- header --------------------*/
  #header {
    padding: calc(var(--thin-gap) * 2) 0;
  }

  .header-container {
    width: 80vw;
  }

  #menu {
    position: absolute;
    top: calc(calc(var(--thin-gap) * 2) + calc(var(--thin-gap) * 2) + 20px);
    right: 0;
    z-index: 1000;
    flex-direction: column;
    visibility: hidden;
    overflow-y: hidden;
    width: 100vw;
    height: 0;
    margin: 0;
    background: var(--white);
    transition: .4s;
  }

  #menu span {
    display: flex;
    row-gap: var(--item-gap);
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--section-gap) 0;
  }

  #menu #button {
    width: 80vw;
    margin: 0 auto;
    padding: .5rem 0;
    font-size: var(--h4);
    transition: .2s;
  }

  #menu span .main-button {
    color: unset;
    border-radius: unset;
    background: unset;
  }

  #menu span .sec-button:hover {
    color: unset;
    border-radius: unset;
    background: unset;
  }

  #nav.active #menu {
    display: flex;
    justify-content: space-between;
    visibility: visible;
    height: 100vh;
  }

  #hamburger {
    content: url("img/icon/menu_open.svg");
  }

  #hamburger::before,
  #hamburger::after {
    content: "";
    display: block;
    position: relative;
    width: 20px;
    height: 1px;
    margin-top: 5px;
    background-color: currentcolor;
    transition: .4s;
  }

  #nav.active #hamburger {
    content: url("img/icon/menu_close.svg");
  }

  #btn-mobile {
    display: flex;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .hollow {
    display: none;
  }
}

.results {
  margin-bottom: 0;
  line-height: 1.8em;
}

.results .bold {
  font-weight: bold;
}

.list {
  margin: 0;
}

.results .item {}

span.marker01 {
  background-color: #eeff00;
  text-align: center;
  font-size: 64px;
}

span.marker {
  background: linear-gradient(to right, #ffcccb 0%, #e6e6fa 100%);
  background-position: left bottom;
  background-repeat: no-repeat;
}

ul {
  padding-left: 0;
}

li {
  list-style: none;
}

/* H1追加分 */
#hero h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: url(../img/bg_img_h1.jpg) 50% 50% / cover no-repeat;
}

#hero h1>div {
  box-sizing: border-box;
  width: 100%;
  padding: 0 .5em;
  font-size: 4vw;
  text-align: center;
}
