:root {
    --bg: #0ea5b1;
    --bg-grad: linear-gradient(180deg, #bfefff 0%, #9ee0f7 15%, #7bd0ea 35%, #5bbdd8 55%, #39a9c7 75%, #1581a8 100%);
    --txt: #06323a;
    --muted: #0c5160;
    --white: #fff;
    --primary: #ff6aa5;
    --primary-weak: #ffe5ef;
    --card: #ffffff;
    --card2: #f4fbfe;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --container: min(1120px, 100% - 48px);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
}

.wrapper {
  width: 100vw;
  padding-bottom: 47vw;  
  box-sizing: border-box;
  position: relative;
}

body {
    max-width: 100%;
    font-family: "Noto Sans JP Heavy", "M PLUS Rounded 1c", system-ui, -apple-system, sans-serif;
    color: var(--txt);
    line-height: 1.85;
    background-image: url(../img/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
}

.work-header__wrapper{
    margin: 50px 20%;
}

.work-header {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    place-items: center;
    gap: 50px;
}

.title {
    text-align: center;
    height: 15vh;
    color: #fff;
}

.title h1 {
    color: #fff;
    font-size: clamp(65px,6vw,100px);
    text-shadow:
    2px 2px 0 #39a9c7,
    -2px 2px 0 #39a9c7,
    -2px -2px 0 #39a9c7,
    2px -2px 0 #39a9c7;
}

.title p {
    font-size: clamp(18px,2vw,40px);
    margin-top: -1em;
    text-shadow:
    2px 2px 0 #39a9c7,
    -2px 2px 0 #39a9c7,
    -2px -2px 0 #39a9c7,
    2px -2px 0 #39a9c7;
}

.home-btn {
    display: inline-block;
    color: #fff;
    font-size: clamp(20px,1.5vw,40px);
    text-decoration: none;
    background-color: #0acaff;
    width: 150px;
    height: 150px;
    line-height: 150px;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
    transition: .4s;
    box-shadow: 0px 0px 0px 5px #0acaff;
    border: solid 2px rgba(255, 255, 255, 0.47);
}

.home-btn span {
    vertical-align: middle;
}

.home-btn:hover {
    color: #4494ed;
    background-color: #fff;
    border: solid 2px #0acaff;
    box-shadow: 0px 0px 0px 5px #fff;
}

.work-top__img {
    z-index: -2;
    order: -1;
}

.work-top__img img {
    width: 10vw;
    height: auto;
}

.work-wrap {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 50px;
    margin: 50px 10% 100px 10%;
}


.work {
    text-align: center;
    background: #fff ;
    box-shadow: 
     inset 2px 2px 5px #0acaff,
     inset -2px -2px 5px #0acaff;
    width: 100%;
    height: auto;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
}


.work-title {
    font-size: clamp(16px, 1vw ,25px);
    text-decoration: none;
    color: #000;
}

.work-list {
    background-color: #FFF;
    text-align: center;
    border-radius: 20px;
    padding: 10px 0;
      box-shadow: 
  inset 2px 2px 5px #0acaff,
  inset -2px -2px 5px #0acaff;
}


.pagination {
  display: flex;
  justify-content: center;
}


.nav-links{
   display:flex;
}

.page-numbers{
   display:inline-block;
   margin-right:10px;
   padding:10px 20px;
   color:#666666;
   border-radius:3px;
   background:#ffffff;
  border: 1px solid #666666;
}

.page-numbers.current{
   padding:10px 20px;
   background:#0acaff;
   color:#ffffff;
}

.page-numbers.prev,
.page-numbers.next{
   background:transparent;
   box-shadow:none;
     border:none;
  color: #fff;
    text-shadow:
    1px 1px 0 #39a9c7,
    -1px 1px 0 #39a9c7,
    -1px -1px 0 #39a9c7,
    1px -1px 0 #39a9c7;
}

.page-numbers.dots{
   background:transparent;
   box-shadow:none;
     border:none;
   color:#666666; 
}

/*---footer---*/

.site-footer {
  text-align: center;
  height: auto;
  width: 100%;
  position: absolute;
  bottom: 0;
}

.footer-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
}

.footer-image-links img {
  height: 40px;
  width: auto;
  margin: 20px;
}

/* ロゴ部分 */
.footer-logo img {
  width: 12.5vw;   /* 比率維持で適宜調整 */
  height: auto;
}

/* コピーライト */
.copy {
  font-size: 1vw;
  color: #333;
  margin-top: 8px;
}

/* ---------- Responsive ---------- */
/*---タブレット---*/
@media (max-width: 1024px){
    .work-header {
        gap: 10px;
    }

    .work-top__img img {
        width: 18vw;
    }

    .title h1 {
        font-size: 50px;
    }

    .home-btn {
        font-size: clamp(14px,1vw,18px);
        width: 100px;
        height: 100px;
        line-height: 100px;
    }

    .footer-logo img {
        width: 200px;
    }

    .work-list img {
    max-width: 35vw;
    height: auto;
}
}

/*---スマートフォン---*/
@media (max-width: 720px) {

    .wrapper {
        padding-bottom: 50vh;
    }

    .work-header {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2,130px);
        grid-template-areas: 
        "img btn"
        "title title";
    }

    .work-header__wrapper {
        margin: 100px 20% 50px 20%;
    }

    .title {
        grid-area: title;
    }

    .title h1 {
        font-size: 60px;
    }

    .title p {
        font-size: 25px;
    }

    .work-top__img {
        display: inline-block;
        position: relative;
        top: 20%;
    }

    .work-top__img img {
        width: 30vw;
    }

    .home-btn {
        grid-area: btn;
    }

    .work-wrap {
        grid-template-columns: repeat(1,1fr);

    }

      .footer-logo img {
    width: 200px;
  }

  .footer-image-links img {
    margin: 10px;
  }

  .footer-inner {
    margin-bottom: 10px;
  }

  .copy {
    font-size: 16px;
  }

  .work-list img {
    max-width: 75vw;
    height: auto;
}
}