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

html,
body {
  margin: 0;
  background: #fff;
}

body {
  margin: 0;
  font-family: "Jost", Futura, "Avenir Next", "Century Gothic", Arial, sans-serif;
  color: #000;
  background: #fff;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0.10em;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  background: transparent;
  color: inherit;
}

/* toggle UI */
.toggle-text,
.toggle-image {
  cursor: pointer;
}
.toggle-text.active,
.toggle-image.active {
  text-decoration: underline;
}

/* Text mode: normal text / hover image */
.works.show-text .work-item .work-text {
  opacity: 1;
}
.works.show-text .work-item img {
  opacity: 0;
}
.works.show-text .work-item:hover .work-text {
  opacity: 0;
}
.works.show-text .work-item:hover img {
  opacity: 1;
}

/* Image mode: normal image / hover text */
.works.show-image .work-item .work-text {
  opacity: 0;
}
.works.show-image .work-item img {
  opacity: 1;
}
.works.show-image .work-item:hover .work-text {
  opacity: 1;
}
.works.show-image .work-item:hover img {
  opacity: 0;
}

/* Touch devices: tap to reveal text */
@media (hover: none), (pointer: coarse) {
  .works.show-image .work-item .work-text {
    opacity: 0;
  }

  .works.show-image .work-item img {
    opacity: 1;
  }

  .works.show-image .work-item.is-revealed .work-text {
    opacity: 1;
  }

  .works.show-image .work-item.is-revealed img {
    opacity: 0;
  }

  .works.show-image .work-item:hover .work-text {
    opacity: 0;
  }

  .works.show-image .work-item:hover img {
    opacity: 1;
  }

  .works.show-image .work-item.is-revealed:hover .work-text {
    opacity: 1;
  }

  .works.show-image .work-item.is-revealed:hover img {
    opacity: 0;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 16px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 100px;
  background: transparent;
}

.logo-block {
  width: auto;
  flex: 0 0 auto;
  position: relative;
}

.toggles {
  position: static;
  transform: none;
  flex: 0 0 auto;
}

.toggles p {
  margin: 0;
}

h1,
h2,
h3,
h4,
strong,
b {
  margin: 0;
  font-family: "Jost", Futura, "Avenir Next", "Century Gothic", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

p,
ul {
  margin: 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: none;
}

.page {
  width: 100%;
  min-height: 100vh;
}

.title {
  display: inline-block;
  cursor: default;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  letter-spacing: inherit;
}

.title-toggle {
  display: inline-block;
  margin: 0 10px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
}

.title p {
  display: inline-block;
  margin: 0;
}

.logo-block {
  width: auto;
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
  padding-bottom: 220px;
  margin-bottom: -220px;
}
.bio {
  position: absolute;
  top: 14px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  width: 300px;
  margin-top: 0;
  z-index: 20;
  background: transparent;
  padding-top: 4px;
}

.logo-block.is-open .bio {
  opacity: 1;
  pointer-events: auto;
}

/* hover が使えるPCだけ hover表示 */
@media (hover: hover) and (pointer: fine) {
  .logo-block:hover .bio {
    opacity: 1;
    pointer-events: auto;
  }
}

.bio p,
.bio ul {
  margin: 0;
  padding: 0;
}

.bio ul {
  list-style: none;
  margin-bottom: 12px;
}

.bio li {
  list-style: none;
}

.bio a {
  text-decoration: none;
}

.toggles p {
  margin: 0;
}

.toggles span:first-child {
  text-decoration: underline;
}

.info {
  display: flex;
  gap: 80px;
  padding: 0 16px 24px 16px;
  max-width: 600px;
}

.info p {
  margin: 0;
}

:root {
  --page-margin: 16px;
  --column-gap: 16px;
  --row-gap: 28px;
  --index-image-height: clamp(360px, 34vw, 560px);
}

.works {
  padding: 40px var(--page-margin) 40px;
}

.work-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--row-gap) var(--column-gap);
  padding: 0;
  margin-top: 0;
}

.work-spacer {
  display: block;
  flex: 0 0 clamp(260px, 24vw, 320px);
  width: clamp(260px, 24vw, 320px);
  height: 1px;
  pointer-events: none;
}

.work-item {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: auto;
  color: inherit;
  text-decoration: none;
  text-align: left;
}

.work-item img,
.work-item.small img,
.work-item.medium img,
.work-item.large img,
.work-item.xlarge img {
  display: block;
  width: auto;
  height: var(--index-image-height);
  max-width: none;
  object-fit: initial;
  opacity: 0;
  pointer-events: auto;
}

.work-item .work-text {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  max-width: 320px;
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* Text mode: normal text / hover image */
.works.show-text .work-item .work-text {
  opacity: 1;
}

.works.show-text .work-item img {
  opacity: 0;
}

.works.show-text .work-item:hover .work-text {
  opacity: 0;
}

.works.show-text .work-item:hover img {
  opacity: 1;
}

/* Image mode: normal image / hover text */
.works.show-image .work-item .work-text {
  opacity: 0;
}

.works.show-image .work-item img {
  opacity: 1;
}

.works.show-image .work-item:hover .work-text {
  opacity: 1;
}

.works.show-image .work-item:hover img {
  opacity: 0;
}

/* toggle buttons */
.toggles button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
}

.toggle-text.active,
.toggle-image.active {
  text-decoration: underline;
}

@media (min-width: 991px) and (max-width: 1400px) {
  .work-grid {
    justify-content: center;
  }

  .work-spacer {
    flex-basis: clamp(80px, 10vw, 170px);
    width: clamp(80px, 10vw, 170px);
  }

  .work-item img,
  .work-item.small img,
  .work-item.medium img,
  .work-item.large img,
  .work-item.xlarge img {
    height: clamp(380px, 27vw, 500px);
  }
}

/* Tablet / narrow desktop */
@media (min-width: 768px) and (max-width: 990px) {
  .works {
	margin-top: 0;
    padding: 390px 16px 40px;
  }

  .work-grid {
	margin-top: 0;
    display: block;
    width: 100%;
  }

  .work-spacer {
    display: none;
  }

  .work-item,
  .work-item.featured {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 64px 0;
    transform: none;
  }

  .work-item img,
  .work-item.small img,
  .work-item.medium img,
  .work-item.large img,
  .work-item.xlarge img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin-left: auto;
    margin-right: auto;
  }
	
  .work-item.landscape img {
    width: 100%;
    height: auto;
  }
	
  .work-item.portrait img {
    width: auto;
    max-width: calc(100vw - 240px);
    height: auto;
  }
}

/* Smartphone */
@media (max-width: 767px) {
  .header {
	margin-top: 0;
    position: relative;
    display: block;
    padding: 16px 14px;
  }

  .logo-block {
  padding-bottom: 0;
  margin-bottom: 0;
}
	
	.bio {
  position: static;
  width: 100%;
  padding-top: 12px;
}
	
  .toggles {
    position: absolute;
    top: 16px;
    right: 14px;
    padding: 0;
    margin: 0;
    z-index: 30;
    white-space: nowrap;
  }

  .title {
    padding-right: 110px;
  }

  .title h1,
  .title p {
    display: block;
  }

  .works {
    display: block;
    padding: 80px 14px 40px;
  }

 .featured-row .work-item {
    margin-left: 0;
    max-width: 100%;
  }

  .work-grid {
    display: block;
  }

	.work-spacer {
    display: none;
  }

  .work-item,
  .work-item.featured {
    width: 100%;
    margin: 0 0 48px 0;
  }

  .work-item img,
  .work-item.small img,
  .work-item.medium img,
  .work-item.large img,
  .work-item.xlarge img {
    width: 100%;
    height: auto;
  }

  .work-item .work-text {
    width: 100%;
    max-width: 100%;
  }

  .works.show-text .work-item .work-text {
    opacity: 1;
  }

  .works.show-text .work-item img {
    opacity: 0;
  }

  .works.show-image .work-item .work-text {
    opacity: 0;
  }

  .works.show-image .work-item img {
    opacity: 1;
  }

  .works.show-text .work-item:hover .work-text {
    opacity: 1;
  }

  .works.show-text .work-item:hover img {
    opacity: 0;
  }

  .works.show-image .work-item:hover .work-text {
    opacity: 0;
  }

  .works.show-image .work-item:hover img {
    opacity: 1;
  }
}