/*
Theme Name: moeko
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Minimal WordPress theme "moeko".
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: moeko
Tags: minimal, custom
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 0;
    padding: 0;
    color: #222;
    background: #fff;
}

.site {
    max-width: 1300px;
    margin: 0 auto;
}

div:has([id="all"]:checked) ~ .works-list>.works-item{
display: block;
}


div:has([id="web"]:checked) ~ .works-list>.works-item:not([data-category*="web"]){
display: none;
}

div:has([id="uiux"]:checked) ~ .works-list>.works-item:not([data-category*="uiux"]){
display: none;
}

div:has([id="graphic"]:checked) ~ .works-list>.works-item:not([data-category*="graphic"]){
display: none;
}

h2 {
  position: relative;
}

h2:before {
  content: "";
  position: absolute;
  border-style: solid;
  border-right: 40px solid transparent;
  border-left: 40px solid transparent;
  border-bottom: 74px solid #f9dedb;
  border-top: 0;
  transform: rotate(109deg);
  top: -10px;
  z-index: -1;
}

.top-img-list {
  display: grid;
  width: 100%;  /* 追加 */
  height: auto; /* 追加 */
  
  li {
    width: 100%;
    grid-column: 1; /* 全ての要素を同じ列に */
    grid-row: 1;    /* 全ての要素を同じ行に */
    opacity: 0;
    animation: top-img-list 10s infinite;

    &:nth-child(1) {
      animation-delay: 0s;
    }
    &:nth-child(2) {
      animation-delay: 3s;
    }
    &:nth-child(3) {
      animation-delay: 6s;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}
@keyframes top-img-list {
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  45% { opacity: 0; }
  100% { opacity: 0; }
}

.fade-in-up {
  animation: fadeInup 1s ease-out forwards;
}

@keyframes fadeInup {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.random-triangle {
  width: 0;
  height: 0;
  border-left: 75px solid transparent;
  border-right: 75px solid transparent;
  border-bottom: 150px solid rgba(251, 128, 114, 0.3);
  position: absolute;
  left: 20%;
  top: 60%;
}

/* 三角1 */
.triangle-1 {
  animation: move 3s ease-in-out infinite;
  animation-delay: 0s;
}


@keyframes move {
  0% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-120px) translateX(-80px) rotate(180deg) scale(1.2); }
  100% { transform: translateY(0) translateX(0) rotate(360deg) scale(1); }
}


.noto-sans-jp{
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.zen-maru-gothic-regular {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.zen-maru-gothic-bold {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
}


.ubuntu-sans,h2 {
  font-family: "Ubuntu Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.wp-block-heading {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.4rem;
  color: #fb8072;
  margin-top: 20px;
}