* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

:root {
  --blue: #3c43e6;
  --border: 2px solid var(--blue);
}

html,
body {
  width: 100%;
  height: 100%;
  background: #f9f1ef;
  position: relative;
  cursor: none;
}

h1,
h2,
h3,
h4,
p,
a,
button,
span {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: var(--blue);
}

.goo-filter {
  position: absolute;
  width: 0;
  height: 0;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  filter: url("#goo");
  will-change: transform;
  transform: translateZ(0);
}

.safari .cursor {
  filter: none;
}

@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  .cursor {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }

  html,
  body {
    cursor: auto !important;
  }
}

.cursor-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
}

.header {
  padding: 15px 35px;
  border-bottom: var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media screen and (max-width: 700px) {
  .header {
    padding: 20px 15px 15px;
  }
}

.header .copy-phone {
  display: none;
}

@media screen and (max-width: 550px) {
  .header .copy-phone {
    display: block;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-container .header-left,
.header-container .header-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

@media screen and (max-width: 700px) {
  .header-container .header-right {
    gap: 15px;
  }
}

.header-container .header-left .logo {
  width: 80px;
  height: 27.6321px;
}

@media screen and (max-width: 550px) {
  .header-container .header-left .copy {
    display: none;
  }
}

.header button,
.header p,
.header a {
  color: var(--blue);
  font-size: 10pt;
  text-decoration: none;
  background: none;
  border: none;
}

main {
  margin: 30px 35px;
  display: flex;
  gap: 20px;
}

@media screen and (max-width: 1200px) {
  main {
    display: block;
  }
}

@media screen and (max-width: 700px) {
  main {
    margin: 10px 15px;
  }
}

main .primary {
  width: auto;
  padding-bottom: 200px;
}

@media screen and (max-width: 1200px) {
  main .primary {
    padding-bottom: 100px;
  }
}

main .primary .p-thumb {
  aspect-ratio: 8 / 5;
  border: var(--border);
}

main .primary .p-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

main .primary .p-cat {
  margin-top: 20px;
}

main .primary .p-cat .category {
  display: flex;
  align-items: center;
  gap: 12px;
}

main .primary .p-cat .category p {
  font-size: 12px;
}

main .primary .p-cat .category .circle {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background-color: var(--blue);
}

main .primary .p-cat .primary-title {
  font-size: 24px;
  margin-top: 12px;
}

main .primary .text .primary-description {
  color: var(--blue);
  margin-top: 12px;
  line-height: 1.7;
  font-size: 12px;
}

main .primary .text .primary-description p,
main .primary .text .primary-description ul,
main .primary .text .primary-description ol {
  color: var(--blue);
  margin-top: 12px;
  line-height: 1.7;
  font-size: 12px;
}

main .primary .text .primary-description a {
  color: var(--blue);
}

main .primary .text .primary-description img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 12px;
}

main .secondary {
  width: 450px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media screen and (max-width: 1200px) {
  main .secondary {
    width: auto;
    padding-bottom: 200px;
  }
}

main .secondary .nav {
  border: var(--border);
  padding: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-content: flex-start;
}

.category-filter {
  height: fit-content;
  padding: 6px 12px;
  border: 1.7px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  border-radius: 3px;
}

.category-filter.is-active {
  background: var(--blue);
  color: #f9f1ef;
}

@media screen and (max-width: 1200px) {
  .works {
    display: grid;
    column-gap: 15px;
    row-gap: 10px;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .works {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 700px) {
  .works {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 500px) {
  .works {
    grid-template-columns: repeat(1, 1fr);
  }
}

.work-item {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

@media screen and (max-width: 1200px) {
  .work-item {
    display: block;
    width: 100%;
  }
}

.thumb {
  width: 192px;
  position: relative;
  aspect-ratio: 8 / 5;
}

@media screen and (max-width: 1200px) {
  .thumb {
    width: 100%;
  }
}

.thumb img {
  width: 100%;
  display: block;
}

.meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: calc(450px - 192px - 20px);
}

@media screen and (max-width: 1200px) {
  .meta {
    width: auto;
  }
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--border);
  pointer-events: none;
}

.category,
.title {
  color: var(--blue);
}

.category {
  font-size: 12px;
  margin-bottom: 2px;
  margin-top: 12px;
}

.title {
  font-size: 17px;
}

@media screen and (max-width: 1200px) {
  .title {
    font-size: 14px;
  }
}
