@charset "utf-8";

:root {
  /* z-index */
  --z-archive-overlay: 200;
  --z-popup-box: 210;
  --z-sp-menu-btn: 120;
  --z-sp-menu-overlay: 100;
  --z-sp-menu-box: 110;
  --z-page-anim-overlay: 300;

  /* color */
  --color-bg: #fff;
  --color-base: #555;
  --color-li: #737679;
  --color-hl: #9c9fa3;

  --color-line: #999;
  --color-current-line: #b1b4b8;
  --color-p-line: #eee;

  --color-tab: #d6d8db;
  --color-sp-menu-btn: #EBEDF1;
  --color-overlay: #000;
  --color-popup-comment: #fff;

  /* font-size */
  --f-size-small: 12px;
  --f-size-base: 14px;
  --f-size-menu: 16px;
  --f-size-large: 18px;
  --f-size-h3: 20px;
  --f-size-h2: 24px;
  --f-size-h1: 28px;
}

/* ------------------------------------ */
/* common */

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-base);
  font-family: "Poppins", "Montserrat", "Noto Sans JP", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

button {
  all: unset;
}

button,
a,
.img-overlay,
.archive-grid,
.page-anim-overlay {
  user-select: none;
  -webkit-user-select: none;
}

h1 {
  font-size: var(--f-size-h1);
  line-height: 20px;
  font-weight: 600;
}

h2 {
  font-size: var(--f-size-h2);
  font-weight: 500;
}

h3 {
  font-size: var(--f-size-h3);
  font-weight: 400;
}

p,
button {
  font-size: var(--f-size-base);
}

.p-font-large {
  font-size: var(--f-size-large);
  font-weight: 500;
}

.p-font-small {
  font-size: var(--f-size-small);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  letter-spacing: 2px;
}

a {
  text-decoration: none;
  color: var(--color-base);
}

.p-margin-base {
  margin-top: var(--f-size-base);
}

.p-margin-small {
  margin-top: calc(var(--f-size-base) * 0.5);
}

/* archive以外のimgにつける */
/* imgを囲うdivに */
.img-wrap {
  position: relative;
}

/* imgの下にdivを追加 */
.img-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

/* ------------------------------------ */
/* スクロールバー画面非表示 */

html {
  /* IE, Edge(旧) */
  -ms-overflow-style: none;
  /* Firefox */
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  /* Chrome, Safari, Edge */
  display: none;
}

/* ------------------------------------ */
/* top */

.top {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.top-img {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------ */
/* info */

.info {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contents {
  flex: 1;
  width: 80%;
  margin: 0 auto;
  max-width: 600px;
}

.contents-title {
  text-align: center;
}

.info-box {
  margin-top: 32px;
  text-align: center;
}

.profile-box,
.contact-box,
.link-box {
  margin-top: 16px;
  background-color: #f6f6f6;
  border-radius: var(--f-size-base);
  padding: var(--f-size-base);
}

/* profile */

.profile-box {
  display: flex;
  gap: 16px;
  flex-direction: column;
}

.profile-img {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.profile-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.profile-text {
  flex: 1;
}

/* contact */

.copy-btn {
  position: relative;
  width: 100px;
  height: 21px;
  color: var(--color-li);
  margin-top: var(--f-size-base);
}

.copy-btn .label {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.copy-btn .copied {
  opacity: 0;
  transform: translate(-50%, 50%);
}

.copy-btn.active .default {
  opacity: 0;
  transform: translate(-50%, -50%);
}

.copy-btn.active .copied {
  opacity: 1;
  transform: translate(-50%, -0%);
}

/* link */

.link-box {
  list-style: none;
  font-size: var(--f-size-base);
}

.link-item:not(:first-child) {
  margin-top: calc(var(--f-size-base) * 0.5);
}

/* terms */

.terms {
  border-top: 2px var(--color-p-line) solid;
  margin-top: 80px;
  color: var(--color-hl);
  padding: var(--f-size-base) 0;
  text-align: center;
}

/* ------------------------------------ */
/* archive */

.archive {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.archive-contents {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.tabs {
  margin-top: 16px;
}

.tab {
  padding: 8px;
  border: var(--color-tab) 1px solid;
  color: var(--color-li);
  border-radius: 8px;
  margin-right: 8px;
}

.tab.active {
  background: var(--color-tab);
  color: var(--color-bg);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding: 32px;
  margin: 0 auto;
  max-width: 964px;
}

.archive-card {
  display: none;
  opacity: 0;
  transform: translateY(5px);
  transition: transform 0.3s ease;
}

.archive-card.active {
  display: block;
  transform: translateY(0);
}

.archive-card img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.archive-card-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: var(--color-overlay);
  opacity: 0;
  transition: opacity 0.2s;
}

.archive-card.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.archive-card.shown {
  opacity: 1;
}

.archive-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  opacity: 0.6;
  z-index: var(--z-archive-overlay, 200);
}

.archive-overlay.shown {
  display: block;
}

.popup-box {
  position: fixed;
  inset: 0;
  display: none;
  pointer-events: none;
  text-align: center;
  z-index: var(--z-popup-box, 210);
}

.popup-box.shown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.popup-content {
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  flex: 1 1 auto;
}

.popup-comment {
  margin-top: 16px;
  color: var(--color-popup-comment);
  flex: 0 0 auto;
}

/* ------------------------------------ */
/* header */

header {
  height: 40px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.sp-menu-btn {
  position: fixed;
  top: 32px;
  right: 32px;
  width: 36px;
  height: 36px;
  border: var(--color-sp-menu-btn) 2px solid;
  border-radius: 8px;
  opacity: 1;
  z-index: var(--z-sp-menu-btn, 120);
  background-color: var(--color-bg);
}

.sp-menu-btn.waiting {
  opacity: 0;
}

.sp-menu-btn.active {
  opacity: 1;
  background-color: var(--color-sp-menu-btn);
}

.pc-menu {
  display: none;
}

.menu {
  list-style: none;
  padding: 0;
  font-size: var(--f-size-menu);
  font-weight: 300;
}

.menu-item.current .menu-link {
  color: var(--color-hl);
}

.sp-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  opacity: 0.4;
  pointer-events: auto;
  transition: opacity 0.3s;
  z-index: var(--z-sp-menu-overlay, 100);
}

#sp-menu-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.sp-menu-box {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  width: 100%;
  height: 260px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(0, -500px);
  transition: transform 0.6s, opacity 0.6s;
  z-index: var(--z-sp-menu-box, 110);
}

.sp-menu-box.shown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.sp-menu .menu {
  margin-top: 64px;
}

.sp-menu .menu-item:not(:first-child) {
  margin-top: 24px;
}

#close-menu-btn.sp-menu-btn {
  background: var(--color-sp-menu-btn);
}

#close-menu-btn.hidden {
  display: none;
}

/* ------------------------------------ */
/* line */

.menu-link {
  color: var(--color-base);
}

.link {
  color: var(--color-li);
}

.menu-link,
.link {
  padding-bottom: 2px;
  position: relative;
}

.menu-link::before {
  background: var(--color-line);
}

.link::before {
  background: var(--color-hl);
}

.menu-link::before,
.link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform-origin: center top;
  transform: scale(0, 1);
  transition: transform 0.3s;
}

.menu-item.current .menu-link::before {
  color: var(--color-hl);
  background: var(--color-current-line);
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform-origin: center top;
  transform: scale(1, 1);
}

/* ------------------------------------ */
/* footer */

footer {
  text-align: center;
  padding: calc(var(--f-size-small) * 2);
}

/* ------------------------------------ */
/* page-anim */

.page-anim-overlay {
  position: fixed;
  background: var(--color-bg);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-page-anim-overlay, 300);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-anim-overlay.active {
  opacity: 1;
}

/* ------------------------------------ */
/* 768px- */

@media(min-width: 768px) {
  .sp-menu-btn {
    display: none;
  }

  .pc-menu {
    display: flex;
    gap: 32px;
  }

  .pc-menu .menu {
    display: flex;
    gap: 32px;
  }
}

/* ------------------------------------ */
/* hover (only pc) */

@media (hover: hover) and (pointer: fine) {
  button:hover {
    cursor: pointer;
  }

  .copy-btn:hover {
    color: var(--color-hl);
  }

  .sp-menu-btn:hover {
    cursor: default;
  }

  .archive-card-overlay:hover {
    cursor: pointer;
    opacity: 0.2;
  }

  .menu-link:hover::before,
  .link:hover::before {
    transform-origin: center top;
    transform: scale(1, 1);
  }
}