@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&family=Inter:wght@400;500&display=swap");

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-bg-grey: #f7f7f7;
  --color-text-grey: #61605b;
  --color-link-blue: #1f8dff;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--color-bg-grey);
  font-family: "Inter", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.main {
  width: 100%;
  display: block;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- KV image ---------- */

.kv {
  position: relative;
  width: 100%;
  margin: 0 auto;
  line-height: 0;
  flex: 0 0 auto;
}

.kv img.is-pc,
.kv img.is-sp {
  width: 100%;
  height: auto;
}

.is-sp {
  display: none;
}

/* ---------- SNS icons (overlaid on KV, top right) ---------- */

.sns-icons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background-color: var(--color-black);
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.sns-icon img {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.sns-icon:hover,
.sns-icon:focus-visible {
  background-color: #333333;
  transform: translateY(-2px);
}

.sns-icon:active {
  transform: translateY(0);
  opacity: 0.8;
}

.sns-icon:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

/* ---------- Footer (contact + copyright, single row) ---------- */

.site-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: start;
  justify-content: flex-end;
  gap: 6px 16px;
  width: 100%;
  padding: 10px 16px;
  background-color: var(--color-bg-grey);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.contact .mail {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.contact p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: var(--color-text-grey);
  font-size: 12px;
}

.contact-link {
  color: var(--color-text-grey);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--color-link-blue);
}

.contact-link:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
  border-radius: 2px;
}

.copylight {
  display: flex;
  align-items: center;
  justify-content: right;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.copylight p {
  margin: 0;
  font-family: "Outfit", Helvetica, sans-serif;
  font-weight: 300;
  color: var(--color-text-grey);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0;
  line-height: 16px;
  white-space: nowrap;
}

/* ---------- Desktop (PC) layout ---------- */

@media (min-width: 768px) {
  .is-pc {
    display: block;
  }

  .is-sp {
    display: none;
  }

  .sns-icons {
    top: 32px;
    right: 40px;
    gap: 16px;
  }

  .sns-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .sns-icon img {
    width: 22px;
    height: 22px;
  }

  .site-footer {
    padding: 10px 20px;
    gap: 8px 16px;
    justify-content: flex-end;
  }

  .contact p {
    font-size: 12px;
  }

  .copylight p {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .is-pc {
    display: none;
  }

  .is-sp {
    display: block;
  }
}
