html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
body {
  line-height: 1;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: "";
  content: none;
}
a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
  color: inherit;
}
ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}
mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: 700;
}
del {
  text-decoration: line-through;
}
abbr[title], dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}
input, select {
  vertical-align: middle;
}
input[type=submit], input[type=button] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  -moz-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
}
input[type=submit]::-webkit-search-decoration, input[type=button]::-webkit-search-decoration {
  display: none;
}
input[type=submit]::focus, input[type=button]::focus {
  outline-offset: -2px;
}
.hamburger {
  display: none;
}
.hamburger.active span:nth-of-type(1) {
  transform: translateY(1.35rem) rotate(45deg);
}
.hamburger.active span:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active span:nth-of-type(3) {
  transform: translateY(-1.35rem) rotate(-45deg);
}
@media screen and (max-width: 800px) {
  .hamburger {
    display: block;
    z-index: 109000;
    position: fixed;
    top: 0;
    right: 2rem;
    cursor: pointer;
    width: 5rem;
    height: 5.6rem;
  }
}
@media screen and (max-width: 800px) {
  .hamburger span {
    transition: all .5s;
    position: absolute;
    left: 0;
    width: 100%;
    height: .4rem;
    background-color: #000000;
    border-radius: 4px;
  }
  .hamburger span:nth-child(1) {
    top: 25%;
  }
  .hamburger span:nth-of-type(2) {
    top: 50%;
  }
  .hamburger span:nth-of-type(3) {
    top: 75%;
  }
}
.drawer-nav {
  width: 200px;
  background-color: #fd624a;
  z-index: 10000;
}
.drawer-menu {
  padding-top: 120px;
}
.drawer--right .drawer-nav {
  right: -200px;
}
.drawer-menu-item {
  padding-left: 40px;
  color: #000000 !important;
  margin-bottom: 10px;
  text-decoration: none !important;
}
.drawer-menu-item span {
  display: inline-block;
  font-size: 1.6rem;
}
.drawer-menu-item span:after {
  transition: .2s;
  display: block;
  content: "";
  width: 0%;
  height: 2px;
  margin-top: 2px;
  background-color: #000;
}
.drawer-menu-item span:hover {
  color: #000 !important;
}
.drawer-menu-item span:hover:after {
  width: 100%;
}
.drawer-overlay {
  z-index: 9000;
}
.scrollLine {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 200px;
  position: relative;
  overflow: hidden;
  z-index: 1000000;
}
.scrollLine__text {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.scrollLine__lineBox {
  height: 120px;
  width: 1px;
  overflow: hidden;
}
.scrollLine__lineBox__line {
  height: 100%;
  background-color: #000;
  animation: lineAnimation 2s infinite;
}
.scrollLine__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  max-width: 100%;
  background-color: #fff;
  animation: slideup 1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scrollLine__bar--black {
  background-color: #000;
}
.scrollLine__bar--lightGray {
  background-color: #fafafa;
}
@keyframes lineAnimation {
  0% {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}
@keyframes slideup {
  0% {
    height: 0;
  }
  to {
    height: 100vh;
  }
}
.header {
  height: 100%;
  min-height: 800px;
  flex-direction: row;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  background-color: #fff;
  z-index: 1000000;
}
.header--black, .header--transparent {
  background-color: transparent;
}
@media screen and (max-width: 800px) {
  .header {
    display: none;
  }
}
.header__follow {
  height: 1px;
  width: 0px;
  animation: follow 1s;
  animation-fill-mode: forwards;
  animation-delay: .5s;
  background-color: #000;
  z-index: 100;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50px;
  margin: auto;
}
@media screen and (max-width: 480px) {
  .header__follow {
    display: none;
  }
}
.header__line {
  height: 0;
  min-height: 0;
  width: 1px;
  background-color: #000;
  animation: lineanimation 1s;
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
}
.header__line--white {
  background-color: #fff;
}
.header__content {
  min-height: 800px;
  width: 100%;
  width: 50px;
}
.header__content__top {
  width: 100%;
  height: 33vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 80px;
}
.header__content__top__icon {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  opacity: 0;
  animation-delay: 2s;
  animation: bottom-text 1s;
  animation-fill-mode: forwards;
}
.header__content__middle {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 22vh;
}
.header__content__middle__text {
  transform: rotate(90deg);
  white-space: nowrap;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  animation-delay: 2s;
  animation: middle-text 1s;
  animation-fill-mode: forwards;
}
.header__content__bottom {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 33vh;
}
.header__content__bottom__wrap {
  display: flex;
  align-items: center;
  writing-mode: vertical-rl;
}
.header__content__bottom__text {
  white-space: nowrap;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  animation-delay: 2s;
  animation: middle-text 1s;
  animation-fill-mode: forwards;
}
.header__hamburger {
  width: 24px;
  position: absolute;
  top: 20px;
  left: calc((100% - 24px)/2);
  cursor: pointer;
}
.header__hamburger--sp {
  left: auto;
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 100000;
  display: none;
  padding: 16px;
}
@media screen and (max-width: 800px) {
  .header__hamburger--sp {
    display: block;
  }
}
.header__hamburger span {
  display: block;
  height: 1px;
  background-color: #000;
  transition: .4s;
}
.header__hamburger span:nth-child(2) {
  margin: 4px 0;
}
.header__hamburger--white span {
  background-color: #fff;
}
.header__hamburger.active span:nth-of-type(1) {
  transform: translateY(5px) rotate(35deg);
}
.header__hamburger.active span:nth-of-type(2) {
  opacity: 0;
}
.header__hamburger.active span:nth-of-type(3) {
  transform: translateY(-5px) rotate(-35deg);
}
.border-black {
  border-left: 1px solid black;
}
.background-black {
  background-color: #000;
}
.background-white {
  background-color: #fff;
}
.text-black {
  color: #000;
}
@keyframes follow {
  0% {
    width: 0px;
    right: 300px;
  }
  50% {
    width: 200px;
    right: 80px;
  }
  to {
    width: 0px;
    right: 50px;
  }
}
@keyframes lineanimation {
  0% {
    min-height: 0%;
  }
  to {
    min-height: 100%;
  }
}
@keyframes bottom-text {
  0% {
    opacity: 0;
  }
  88% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes middle-text {
  0% {
    opacity: 0;
  }
  80% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100002;
  background-color: #fff;
}
.navigation__circleWrap {
  width: 10vw;
  height: 110vh;
  position: relative;
  pointer-events: none;
}
.navigation__circleWrap img {
  height: 180%;
  min-width: 198vh;
  position: absolute;
  left: -40%;
  top: -40%;
}
.navigation__subtitle {
  width: 8vw;
  margin-right: 5vw;
}
.navigation__nav {
  display: flex;
  margin-right: 60px;
}
.navigation__nav__list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: repeat(4, max-content);
  grid-auto-flow: column;
  gap: 60px;
}
.navigation__nav__list__item {
  transition: all .5s;
}
.navigation__nav__list__item:hover .navigation__nav__list__item__title, 
.navigation__nav__list__item:hover .navigation__nav__list__item__no {
  color: #fff;
  transform: scale(1.1);
  text-shadow: #000 1px 1px 0px, #000 -1px 1px 0px, #000 1px -1px 0px, #000 -1px -1px 0px;
}
.navigation__nav__list__item:hover .navigation__nav__list__item__border {
  opacity: 0;
}
.navigation__nav__list__item:last-child {
  margin-bottom: 0;
}
.navigation__nav__list__item a {
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
}
.navigation__nav__list__item__no {
  font-size: 2.4rem;
  line-height: 1;
}
.navigation__nav__list__item__border {
  display: block;
  width: 32px;
  height: 1px;
  background-color: #000;
  margin: 0 8px;
  overflow: hidden;
}
.navigation__nav__list__item__title {
  font-size: 4rem;
  line-height: 6rem;
  line-height: 1;
  left: 15%;
  transition: all .5s;
}
.sp_navigation {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 100000;
}
@media screen and (max-width: 800px) {
  .sp_navigation {
    flex-direction: column;
    align-items: center;
  }
}
.sp_navigation__top {
  width: 100%;
  margin-top: 32px;
}
.sp_navigation__title {
  width: 50%;
  margin-top: 16px;
  margin-bottom: 0;
}
@media screen and (max-width: 480px) {
  .sp_navigation__title {
    width: 60%;
  }
}
.sp_navigation__title img {
  width: 100%;
}
.sp_navigation__nav {
  margin-top: 16px;
}
.sp_navigation__nav__list__item {
  margin-bottom: 20px;
}
.sp_navigation__nav__list__item a {
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
}
.sp_navigation__nav__list__item__no {
  font-size: 1.2rem;
  line-height: 1;
}
.sp_navigation__nav__list__item__border {
  display: block;
  width: 32px;
  height: 1px;
  background-color: #000;
  margin: 0 16px;
}
.sp_navigation__nav__list__item__title {
  font-size: 2.4rem;
  line-height: 1;
}
.sp_navigation__bottom {
  display: flex;
  justify-content: center;
  margin-top: 0;
}
.sp_navigation__bottom__icon {
  width: 60px;
}
@keyframes zoomOut {
  0% {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
.animated-circle {
  animation: rotate 80s infinite linear;
}
@keyframes rotate {
  0% {
    transform: rotate(-360deg);
  }
  to {
    transform: rotate(0);
  }
}
.imgAnimation__wrapper {
  overflow: hidden;
  position: relative;
  opacity: 0;
}
.imgAnimation--animated {
  opacity: 1;
}
.imgAnimation--animated:before {
  animation: img-wrap 2s cubic-bezier(.4,0,.2,1) forwards;
  background: #FFFFFF;
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}
.imgAnimation--black:before {
  background: #000;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}
@keyframes img-wrap {
  to {
    transform: translateY(-100%);
  }
}
.magic-text span {
  opacity: 0;
  transform: translateY(3.5px);
  transition: all .25s ease-out;
}
.magic-text span.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ml6 {
  position: relative;
  font-weight: 900;
}
.ml6 .text-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.ml6 .letter {
  display: inline-block;
  font-size: 7.2rem;
  letter-spacing: .6rem;
  height: 7.2rem;
}
.textZoomIn {
  animation: zoomin .5s forwards;
}
.videofadeIn {
  animation: videoFadein 3s forwards;
}
.fadeIn {
  animation: fadein 1s forwards;
}
@keyframes videoFadein {
  0% {
    opacity: 0;
  }
  to {
    opacity: .6;
  }
}
@keyframes zoomin {
  0% {
    transform: scale(0);
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.text-focus-in {
  animation: text-focus-in 1s cubic-bezier(.55,.085,.68,.53) both;
}
@keyframes text-focus-in {
  0% {
    filter: blur(12px);
    opacity: 0;
  }
  to {
    filter: blur(0px);
    opacity: 1;
  }
}
.pages {
  width: 80%;
  margin: 0 auto;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  min-height: 50px;
}
.pages a.page-numbers, .pages span.current {
  font-size: 1.6rem;
  color: #fff;
  margin: 0 6px;
}
.pages--black a.page-numbers, .pages--black span.current {
  font-size: 1.6rem;
  color: #000;
  margin: 0 6px;
}
.pages span.current {
  opacity: .38;
}
.prev img, .next img {
  width: 30px;
}
.prev span, .next span {
  font-size: 1.6rem;
  font-weight: 700;
}
.prev {
  position: absolute;
  left: 0;
}
.next {
  position: absolute;
  right: 0;
}
.countLoading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  animation: darkGrayChange 1s forwards 2s;
}
.countLoading__text {
  font-size: 4rem;
  line-height: 6rem;
  color: #fff;
  z-index: 40;
}
@keyframes darkGrayChange {
  to {
    color: #171717;
  }
}
.bgTitle {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-size: 14vw;
  pointer-events: none;
  animation: borderChange 2s forwards;
  text-shadow: #171717 1px 1px 0px, #171717 -1px 1px 0px, #171717 1px -1px 0px, #171717 -1px -1px 0px;
  color: #000;
}
.bgTitle-white {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-size: 14vw;
  pointer-events: none;
  animation: borderWhiteChange 2s forwards;
  text-shadow: #F5F5F5 1px 1px 0px, #F5F5F5 -1px 1px 0px, #F5F5F5 1px -1px 0px, #F5F5F5 -1px -1px 0px;
  color: #fff;
}
.bgTitle-gray {
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 14vw;
  transform: translate(-50%, -50%);
  background-color: #fafafa;
  pointer-events: none;
  animation: borderGrayChange 2s forwards;
  text-shadow: #FFFFFF 1px 1px 0px, #FFFFFF -1px 1px 0px, #FFFFFF 1px -1px 0px, #FFFFFF -1px -1px 0px;
  color: #fafafa;
}
.nextTitle {
  position: absolute;
  opacity: 0;
  width: 100vw;
  top: 50%;
  left: 50%;
  font-size: 14vw;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: #F5F5F5 1px 1px 0px, #F5F5F5 -1px 1px 0px, #F5F5F5 1px -1px 0px, #F5F5F5 -1px -1px 0px;
}
.nextTitle-gray {
  position: absolute;
  opacity: 0;
  width: 100vw;
  top: 50%;
  left: 50%;
  font-size: 14vw;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fafafa;
  text-shadow: #FFFFFF 1px 1px 0px, #FFFFFF -1px 1px 0px, #FFFFFF 1px -1px 0px, #FFFFFF -1px -1px 0px;
}
.nextTitle-black {
  position: absolute;
  opacity: 0;
  width: 100vw;
  top: 50%;
  left: 50%;
  font-size: 14vw;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-shadow: #171717 1px 1px 0px, #171717 -1px 1px 0px, #171717 1px -1px 0px, #171717 -1px -1px 0px;
}
.mainContentsVisible {
  opacity: 0;
  animation: fadein 1s forwards;
  animation-delay: 2s;
}
@keyframes fadein {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes borderChange {
  to {
    color: #171717;
  }
}
@keyframes borderWhiteChange {
  to {
    color: #f5f5f5;
  }
}
@keyframes borderGrayChange {
  to {
    color: #fff;
  }
}
.bg-white {
  background-color: #fff;
}
.bg-black {
  background-color: #000;
}
.font-black {
  color: #000;
}
.font-white {
  color: #fff;
}
@font-face {
  font-family: Futura;
  src: url(../font/futura_medium_bt.ttf) format("ttf");
}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, button, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  font-size: 62.5%;
  font-family: Futura;
  line-height: 2;
}
body {
  overflow-x: hidden;
}
div[aria-label], div[aria-label] span {
  font-size: 100%;
}
.wpcf7-form-control-wrap {
  height: 100%;
  width: 100%;
}
.ajax-loader {
  display: none !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output {
  color: #fff;
  border: none;
  font-size: 1.2rem;
  margin: 0 auto;
  z-index: 10;
}
.wpcf7-not-valid-tip {
  margin-left: 48px;
  font-size: 1.2rem !important;
}
.fadeInChar .letter {
  font-size: inherit;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
}
input:-webkit-autofill, input:focus:-webkit-autofill {
  box-shadow: 0 0 0 100px #000 inset;
}
input:-webkit-autofill {
  -webkit-text-fill-color: #FFFFFF !important;
}
.disabled-a {
  pointer-events: none;
}
.works {
  justify-content: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100vw;
  background-color: #fff;  /* ←書き換え */
  overflow: hidden;
  padding-top: 20px;
}
.work-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 8px;
  color: #000;  /* ←書き換え */
}
@media screen and (max-width: 800px) {
  .works__title {
    font-size: 5.6rem;
    letter-spacing: .6rem;
  }
}
.works__circle {
  margin: auto;
  width: 100%;
}
@media screen and (max-width: 800px) {
  .works__circle {
    width: 100px;
  }
}
.works__circle__text {
  font-size: 44px;
  font-weight: 100;
  color: #fff;
}
.works__circleWrap {
  position: absolute;
  top: -500px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.works__circleWrap img {
  width: 800px;
}
.works__body {
  width: calc(100vw - 50px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 24px;
}
@media screen and (max-width: 800px) {
  .works__body {
    width: 100vw;
  }
}
.works__body__title {
  font-size: 7.2rem;
  letter-spacing: .6rem;
  color: #fff;
  margin-bottom: 240px;
  font-weight: 400;
}
.works__body__main {
  width: 80%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}
.works__body__main__item {
  width: 320px;
  margin: 24px;
  text-decoration: none;
}
.works__body__main__item img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.works__body__main__item__title {
  margin-top: 16px;
  font-size: 1.6rem;
  letter-spacing: .02rem;
  color: #fff;
}
@media screen and (max-width: 480px) {
  .works__body__main__item__title {
    font-size: 1.2rem;
    letter-spacing: .02rem;
  }
}
.works__body__main__item__text {
  font-size: 1.2rem;
  margin-top: 8px;
  color: #fff;
}

/* 下記は全て武井追加 */
/* 下記は全て武井追加 */
/* 下記は全て武井追加 */
/* 下記は全て武井追加 */
/* 下記は全て武井追加 */
/* 下記は全て武井追加 */
/* 下記は全て武井追加 */



.work-item {
  display: flex;
  flex-direction: column;
}

.work-image {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  overflow: hidden;
  margin-bottom: 16px;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.work-desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: #000;  
  letter-spacing: 0.03em;
}

.disabled-a {
  pointer-events: none;

}

.bgTitle {
  display: none !important;
}

/* 投稿のレイアウト */

.works-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  /* ヘッダーが幅200pxある想定 */
  width: calc(100vw - 50px); /* 画面幅 - ヘッダー幅 */
  margin: 0;                  /* 画面左上からスタート */
  margin-left: 50px;         /* ヘッダー分だけ左にずらす */
  padding: 0;
  box-sizing: border-box;
}

/* タブレット幅時は4列 */
@media (max-width: 1600px) {
  .works-grid {
     grid-template-columns: repeat(4, 1fr);
     gap: 0;
     width: calc(100vw - 50px); /* 画面幅 - ヘッダー幅 */
     margin: 0;                  /* 画面左上からスタート */
     margin-left: 50px;         /* ヘッダー分だけ左にずらす */
     padding: 0;
     box-sizing: border-box;
    }
}

/* スマホ幅時は2列 */
@media (max-width: 600px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100vw;
    margin-left: 0;
  }
}

.work-item {
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  border-left: none;
  border-top: none;
  padding: 20px;
  box-sizing: border-box;
  background-color: #fff;
  margin: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* 左端に左枠線、上端に上枠線 */
.work-item:nth-child(6n + 1) {
  border-left: 1px solid #000;
}
.work-item:nth-child(-n + 6) {
  border-top: 1px solid #000;
}

.work-item:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  transform: translateY(-6px);
}

/* タブレット用の枠線調整 */
@media (max-width: 1024px) {
  .work-item:nth-child(6n + 1),
  .work-item:nth-child(-n + 6) {
    border-left: none;
    border-top: none;
  }
  .work-item:nth-child(4n + 1) {
    border-left: 1px solid #000;
  }
  .work-item:nth-child(-n + 4) {
    border-top: 1px solid #000;
  }
}

/* スマホ用の枠線調整 */
@media (max-width: 600px) {
  .work-item:nth-child(4n + 1),
  .work-item:nth-child(-n + 4) {
    border-left: none;
    border-top: none;
  }
  .work-item:nth-child(2n + 1) {
    border-left: 1px solid #000;
  }
  .work-item:nth-child(-n + 2) {
    border-top: 1px solid #000;
  }
}




