@charset "UTF-8";

/* ariable */
:root {
  --primary: #5292CA;
  --sub1: #FFF168;
  --sub2: #F7C9DD;
  --white: #ffffff;
}

/* modern-css-reset */
*, *::before, *::after {
    box-sizing: border-box;
  }

  * {
    margin: 0;
  }

  html, body {
    height: 100%;
  }

  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }

  input, button, textarea, select {
    font: inherit;
  }

  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }

  ul {
    padding: 0;
  }

  li {
    list-style: none;
  }
  a {
    text-decoration: none;
    color: var(--primary);
  }

/* Base */
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Krona One", "Noto Sans JP",sans-serif;
    color: #5292CA;
    font-size: 18px;
  }

  .u-center {
    text-align: center;
  }

  .u-right {
    text-align: right;
  }

  .u-light {
    text-align: left;
  }

  /* btn */
  .btn__txt {
    display: inline-block;
    width: 300px;
    height: 75px;
    border-radius: 20px;
    background-color: var(--primary);
    padding: 22px 0;
    color: var(--white);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
  }

  .btn__txt:hover {
    background-color: var(--primary);
    filter: brightness(120%);
  }

  @media screen and (min-width: 768px) {
    .btn__txt {
      width: 100%;
      max-width: 400px;
    }
  }

  /* section */
  section {
    padding: 50px 0;
  }

  .section__ttl {
    font-family: "Krona One";
    font-size: clamp(1.75rem, 1.273rem + 0.97vw, 2rem);
    margin-bottom: 30px;
  }

/* header */
  .header {
    font-family: "Krona One", sans-serif;
    width: 100%;
    background: var(--white);
  }

  .header.is-fixed {
    position: fixed;
    z-index: 1000;
    transition: 1s;
  }

  .header__inner {
    padding: 20px 0;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    height: 100px;
  }

  .header__logo .header__logoTxt {
    font-size: 36px;
    padding: 0;
  }

  .header__nav {
    position: fixed;
    z-index: 10;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    font-size: 36px;
    opacity: 0;
    transition: 0.6s;
  }

  .header__navItem {
    margin-bottom: 20px;
  }

  .header__navItem:hover {
    text-decoration: underline 3px dotted var(--sub2);
    text-underline-offset: 0.3em;
  }

/* header__hamburger */
  .header__hamburger {
    display: block;
    z-index: 100;
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: inherit;
  }

  .hamburger {
    position: relative;
    width: inherit;
    height: inherit;
    margin: 0;
    border: none;
    background: inherit;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    position: relative;
    left: 50%;
    width: 30px;
    height: 2px;
    transform: translateX(-50%);
    transition: all 0.4s;
    background: var(--primary);
  }

  .hamburger span:nth-of-type(1) {
    top: -10%;
  }

  .hamburger span:nth-of-type(2) {
    top: 0;
  }

  .hamburger span:nth-of-type(3) {
    top: 10%;
  }

  .hamburger.is-open span:nth-of-type(1) {
    top: 0px;
    transform: translateX(-50%) rotate(225deg);
  }

  .hamburger.is-open span:nth-of-type(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-of-type(3) {
    top: -4px;
    transform: translateX(-50%) rotate(-225deg);
  }

/* header__hamburger open */
  .header__nav.is-open {
    position: fixed;
    top: 0;
    right: 0;
    background: var(--sub1);
    opacity: 1;
    transition: 1s;
  }

  @media screen and (min-width: 980px) {
    /* .header {
    } */

    .header__inner {
      max-width: 1500px;
      height: 100px;
    }

    .header__logo .header__logoTxt {
      font-size: 50px;
      padding: 0;
    }

    .header__nav {
      position: static;
      flex-direction: row;
      justify-content: flex-end;
      align-items: center;
      font-size: 28px;
      right: 0;
      opacity: 1;
    }

    .header__navList {
      display: flex;
      flex-direction: row;
    }

    .header__navItem {
      margin: 0 37px 0 0;
    }

    .header__navItem:last-child {
      margin-right: 0;
    }

    .header__hamburger {
      display: none;
    }
  }

  /* hero */
  .hero__inner {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 10px;
    margin: 0 auto;
    width: 95%;
    border-radius: 20px;
    background-color: var(--sub1);
  }

  .hero__txtArea {
    width: 100%;
    margin-bottom: 30px;
  }

  .hero__txt {
    font-size: clamp(1.5rem, 1.159rem + 1.45vw, 2.25rem);
    font-weight: bold;
  }

  .hero__subTxt {
    font-size: clamp(1.125rem, 1.068rem + 0.24vw, 1.25rem);
    font-weight: 500;
  }

  @media screen and (min-width: 768px) {
    .hero__inner {
      grid-template-columns: 4fr 6fr;
      grid-template-areas: "title image" "btn image";
      align-items: center;
      padding: 100px 25px;
      max-width: 1500px;
      border-radius: 20px;
    }

    .hero__txtArea {
      grid-area: title;
    }

    .hero__subTxt {
      margin-bottom: 20px;
    }

    .hero__img {
      grid-area: image;
    }

    .hero__inner.btn {
      grid-area: btn;
      width: fit-content;
    }
  }

  /* about */
  #about {
    margin: 0 auto;
    width: 95%;
  }

  .about__inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }

  .about__txtArea {
    line-height: 1.75;
  }

  .about__img {
    max-width: 40vw;
    margin-bottom: 30px;
  }

  @media screen and (min-width: 768px) {
    #about {
      max-width: 1500px;
    }

    .about__inner {
      flex-direction: row;
      justify-content: center;
      padding: 0 100px;
    }

    .about__txtArea {
      padding-right: 100px;
    }

    .about__img {
      max-width: 30vw;
      margin-bottom: 0;
    }

    /* .about__img img {
      width: 70%;
    } */
  }

/* works */
  #works {
    background-color: var(--sub2);
  }

  .works__inner {
    margin: 0 auto;
    width: 95%;
  }
  .works__cardItem {
    background-color: var(--white);
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 0;
    text-align: center;
  }

  .works__cardItem:nth-child(even) {
    border: solid var(--sub1);
  }

  .works__cardLink {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 150px 20px;
    font-weight: 900;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
  }

  .works__cardLink:hover {
    color: var(--sub2);
  }

  .worksBtn {
    margin: 25px 0;
  }

  .works__txt {
    font-size: 16px;
  }

  @media screen and (min-width: 980px) {
    .works__inner {
      max-width: 1500px;
    }
  }

/* swiper */
  .swiper {
    min-height: 350px;
  }

  .swiper-container-wrapper {
    position: relative;
    padding-bottom: 30px;
  }

  .swiper-pagination-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    line-height: 0;
    z-index: 10;
  }

  .swiper-pagination-custom .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    display: inline-block;
    border-radius: 2px;
    background: #000;
    opacity: 0.2;
    transition: all 0.3s;
    margin: 0 5px;
    cursor: pointer;
  }

  .swiper-pagination-custom .swiper-pagination-bullet-active {
    width: 50px;
    opacity: 1;
    background: var(--primary);
  }

  .swiper.mySwiper .swiper-button-next,
  .swiper.mySwiper .swiper-button-prev {
    color: var(--primary);
  }

/* skill */
  #skill {
    margin: 0 auto;
    width: 95%;
  }

  .skill__ttl {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .skill__list{
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .skill__item {
    background-color: var(--sub2);
    padding: 20px;
    text-align: center;
    border: 3px solid var(--sub1);
    border-radius: 15px;
    min-height: 200px;
  }

  @media screen and (min-width: 480px) {
    .skill__list{
      grid-template-columns: 1fr 1fr;
    }
  }

  @media screen and (min-width: 1024px) {
    #skill {
      max-width: 1500px;
    }

    .skill__list{
      grid-template-columns: 1fr 1fr 1fr 1fr;
      gap: 15px;
    }
  }

/* achievements */
  #achievements {
    background-color: var(--sub1);
  }

  .achievements__inner {
    margin: 0 auto;
    width: 95%;
  }

  .achievements__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px clamp(20px, 5vw, 75px);
  }

  .achievements__item {
    border: 5px solid var(--primary);
    border-radius: 30px;
    background-color: var(--white);
    width: 100%;
  }

  .achievements__item:hover {
    border: 10px dotted var(--sub2);
  }
  .achievements__card {
    padding: 10px;
  }

  .achievements__img {
    margin-bottom: 20px;
  }

  @media screen and (min-width: 768px) {
    .achievements__list {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media screen and (min-width: 1024px) {
    .achievements__inner {
      max-width: 1500px;
    }

    .achievements__list{
      margin: 0 auto;
      grid-template-columns: repeat(3, 1fr);
      justify-content: space-between;
    }

    .achievements__item {
      max-width: 450px;
      width: 100%;
      justify-self: center;
    }
  }

  .modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
  }

  .modal__content {
    position: relative;
    z-index: 2;
    background-color: var(--white);
    padding: 40px;
    max-width: 800px;
    width: 90%;
    border-radius: 30px;
  }

  .modal__ttl {
    margin-bottom: 10px;
  }

  .modal__subTtl {
    text-decoration: underline;
    text-underline-offset: 0.3em;
  }

  .modal__link {
    display: block;
  }

  .modal__link:hover {
    text-decoration: 3px underline dotted var(--sub2);
    text-underline-offset: 0.3em;
  }

  .modal__close {
    color: var(--primary);
    background-color: var(--white);
    border: 1px solid var(--primary);
  }

  .modal.is-open {
    opacity: 1;
    visibility: visible;
  }

/* contact */
  #contact {
    background-color: var(--sub1);
  }

  .contact__inner {
    margin: 0 auto;
    width: 95%;
  }

  .contact__txt {
    margin-bottom: 25px;
  }

  @media screen and (min-width: 980px) {
    .contact__inner {
      max-width: 1500px;
    }
  }

/* footer */
  .footer {
    padding: 20px 0;
  }
  .footer__txt {
    font-family: "Krona One";
  }

  /* worksページ用 */
  #icons,
  #banners,
  #works_description {
    padding: 2rem 0;
    margin: 0 auto;
    width: 95%;
  }

  @media screen and (min-width: 768px) {
    #icons,
    #banners,
    #works_description {
      max-width: 1500px;
    }
  }

  .grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .grid img {
    width: 100%;
    height: auto;
    display: block;
  }

  .banners-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .banners-grid img {
    max-width: 360px;
    height: auto;
  }
