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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #1A1A1A;
  background-color: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

.js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 767px) {
  .inner {
    padding-inline: 10px;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
@media (max-width: 767px) {
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 16px 20px;
    gap: 8px 0;
  }
}
.header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.header__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  transform: translateX(12px);
}
@media (max-width: 767px) {
  .header__logo {
    grid-column: 1;
    grid-row: 1;
    transform: none;
  }
}

.header__logo-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: #5BC4E8;
  border-radius: 50%;
  left: 0;
  transform: translateX(-50%);
  z-index: 0;
}

.header__logo-text {
  position: relative;
  z-index: 1;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #6E6E6E;
  letter-spacing: 0.05em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
@media (max-width: 767px) {
  .header__nav {
    grid-column: 1/span 2;
    grid-row: 2;
    justify-content: space-between;
    gap: 0;
    padding-bottom: 4px;
  }
}

.header__nav-link {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .header__nav-link:hover {
    opacity: 0.6;
  }
}
.header__contact-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: transparent;
  width: 160px;
  padding-block: 8px;
  border: 2px solid transparent;
  border-radius: 100px;
  letter-spacing: 0.03em;
  transition: border-color 0.3s ease;
}
@media (max-width: 767px) {
  .header__contact-btn {
    display: none;
  }
}
.header__contact-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #1A1A1A;
  border-radius: inherit;
  z-index: -1;
}
.header__contact-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #4BB8FA;
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  z-index: -1;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

@media (hover: hover) {
  .header__contact-btn:hover {
    border-color: #1A1A1A;
  }
  .header__contact-btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
.header__contact-btn-icon {
  width: 20px;
  height: 16px;
}

.header__mail-icon {
  display: none;
}
@media (max-width: 767px) {
  .header__mail-icon {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #1A1A1A;
    border-radius: 50%;
    transition: opacity 0.2s;
  }
  .header__mail-icon:hover {
    opacity: 0.75;
  }
}

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

.works-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #FFFFFF;
}

.works-bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.works-hero {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
}
@media (max-width: 767px) {
  .works-hero {
    padding-top: 110px;
    padding-bottom: 56px;
  }
}

.works-hero .inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.works-hero__heading-wrap {
  position: relative;
  display: inline-block;
  padding-left: 27px;
}
@media (max-width: 767px) {
  .works-hero__heading-wrap {
    padding-left: 16px;
  }
}

.works-hero__heading-dot {
  position: absolute;
  width: 54px;
  height: 54px;
  background-color: #D7FA4B;
  border-radius: 50%;
  left: 0;
  bottom: 0;
  z-index: 0;
}
@media (max-width: 767px) {
  .works-hero__heading-dot {
    width: 32px;
    height: 32px;
  }
}

.works-hero__heading {
  position: relative;
  z-index: 1;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #6E6E6E;
}
@media (max-width: 767px) {
  .works-hero__heading {
    font-size: 24px;
  }
}

.works-hero__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #1A1A1A;
}

.works-detail {
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
}
@media (max-width: 767px) {
  .works-detail {
    padding-bottom: 72px;
  }
}

.works-detail .inner {
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .works-detail--no-btn .works-detail__meta {
    padding-top: 0;
  }
}
.works-detail__meta {
  order: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  padding: 24px 0;
}
@media (max-width: 767px) {
  .works-detail__meta {
    order: 3;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    border-bottom: none;
    padding: 0;
    margin-top: 64px;
  }
}

.works-detail__meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px;
}
@media (max-width: 767px) {
  .works-detail__meta-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  }
}

.works-detail__meta-item + .works-detail__meta-item {
  border-left: 1px solid rgba(26, 26, 26, 0.1);
}
@media (max-width: 767px) {
  .works-detail__meta-item + .works-detail__meta-item {
    border-left: none;
  }
}

.works-detail__meta-label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #666666;
}

.works-detail__meta-value {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.6;
}

.works-detail__card {
  order: 2;
  padding-top: 48px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .works-detail__card {
    order: 1;
    padding-top: 0;
  }
}

.works-detail__card-img {
  width: 100%;
  display: block;
  border: 1px solid #141414;
  border-radius: 20px;
}

.works-detail__btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  order: 3;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 320px;
  padding-block: 20px;
  margin-top: 40px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #FFFFFF;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 100px;
  letter-spacing: 0.03em;
  transition: border-color 0.3s ease;
}
@media (max-width: 767px) {
  .works-detail__btn {
    order: 2;
    width: 100%;
    margin-top: 24px;
    font-size: 16px;
  }
}
.works-detail__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #1A1A1A;
  border-radius: inherit;
  z-index: -1;
}
.works-detail__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #D7FA4B;
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  z-index: -1;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

@media (hover: hover) {
  .works-detail__btn:hover {
    border-color: #1A1A1A;
  }
  .works-detail__btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
.works-detail__btn-icon {
  width: 20px;
  height: 20px;
}

.works-detail__desc {
  order: 4;
  padding-top: 48px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  color: #1A1A1A;
  line-height: 1.9;
}
@media (max-width: 767px) {
  .works-detail__desc {
    padding-top: 40px;
    font-size: 14px;
  }
}

.works-detail__desc-link {
  color: #FA774B;
  font-weight: 700;
}

.works-detail__points {
  order: 5;
  padding-top: 40px;
}

.works-detail__points-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #1A1A1A;
  background-color: #E8EDF2;
  border-radius: 12px 12px 0 0;
  padding: 20px 24px 12px;
}

.works-detail__points-list {
  display: flex;
  flex-direction: column;
  background-color: #E8EDF2;
  border-radius: 0 0 12px 12px;
  padding: 0 24px 20px;
  gap: 12px;
}

.works-detail__points-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  line-height: 1.7;
}
.works-detail__points-item::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-image: url("../images/check.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.works-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 12px;
  color: #4B4B4B;
  letter-spacing: 0.1em;
}
