/* ----------基本css---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
body{
    background: #fff;
    color:#334d7a;
    letter-spacing: 4px;
    font-family: "Zen Maru Gothic", serif;
}
ul {
    list-style: none;
}
.container {
    width: 1100px;
    margin: 0 auto;
}
.flex {
    display: flex;
    justify-content: space-between;
}
img {
    width: 100%;
    vertical-align: bottom;
}

/* ----------header---------- */
.fixed {
    position: fixed;
    width: 100%;
    z-index: 1;
}
.header-logo img {
    width: 90px;
    margin: 10px 0 0 40px;
}
.header-list a {
    color:#8b9ab3;
    text-decoration: none;
    font-size: 25px;
    padding: 15px;
    font-weight: bold;
    transition: 0.7s;
}
.header-list li {
    margin-top: 30px;
}
.header-list a:hover {
    color: #334d7a;
}
.hamburger-input {
    display: none;
}
.hamburger-bg {
    background-color: #000;
    cursor: pointer;
    display: none;
    height: 100vh;
    left: 0;
    opacity: 0.4;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}
#hamburger:checked ~ .hamburger-bg {
    display: block;
}
.hamburger-button {
   display: none;
}
.hamburger-button-mark {
    background-color: #000;
    display: block;
    height: 1px;
    transition: 0.3s;
    width: 20px;
}

/* ----------top---------- */
#top {
    width: 100%;
    height: 100vh;
}
.index-main {
    width: 100%;
    height: auto;
    background-image: url(images/main_2.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position-x: center;
}
#top h1{
    text-align: center;
    padding-top: 320px;
    font-size: 16px;
}
#top h1 span {
    display: block;
    font-size: 60px;
    padding-bottom: 12px;
}

/* ----------skills---------- */
#skills {
    padding: 100px 0;
}
.sec-title h2 {
    font-size: 40px;
    font-weight: normal;
    text-align: center;
    padding-bottom: 70px;
}
.skills-box {
    padding: 0 160px;
}
.skills-content {
    width: 240px;
}
.skills-content h3 {
    font-size:16px;
    font-weight: normal;
    text-align: center;
    padding-bottom: 50px;
}
.skills-content h3 span {
    display: block;
    font-size: 25px;
}
.skills-img {
    width: 250px;
    padding: 0 20% 50px;
}
.skills-img img {
    width: 150px;
}
.tools {
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 18px;
}
.qualification {
    width: 530px;
    margin: 60px auto 0;
}
.qualification h3 {
    text-align: center;
    padding-bottom: 40px;
}
.qualification th {
    padding-right: 20px;
    font-weight: normal;
}

/* ----------works---------- */
#works {
    padding: 30px 0 100px;
}
.works-main {
    padding-top: 200px;
}
.works-main h2 {
    font-size: 30px;
    padding-bottom: 30px;
}
.top-description {
    padding-bottom: 20px;
}
.site {
    padding: 0 31% 45px;
}
.works-box {
    padding: 0 50px 45px;
}
.works-item {
    text-decoration: none;
    letter-spacing: 2px;
    display: block;
}
.works-item img {
    width: 420px;
    height: 280px;
}
.works-item p {
    font-size: 14px;
    color: #758AAE;
    margin-top: 0px;
}
.works-item p span {
    display: block;
    font-size: 16px;
    color: #334D7A;
}

/* ----------footer---------- */
#footer {
    background: #334d7a;
    padding-top: 50px;
    color: #fff;
    text-align: center;
}
.footer h2 {
    font-weight: normal;
    font-size: 30px;
}
.contact {
    position: relative;
    font-size: 50px;
    color: #fff;
    text-decoration: none;
}
.contact p::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 700;
    position: absolute;
    top: 16px;
    right: 155px;
    transition: .5s;
}
.contact p:hover::after {
    right: 145px;
}
.copy {
    border-top: 1px solid;
    padding: 50px 0;
}

/* ----------about-page---------- */
.about {
    padding-top: 200px;
}
.about h2 {
    font-size: 60px;
}
.about img {
    width: 300px;
    height: auto;
}
.about dl {
    margin: 0;
    padding-top: 60px;
}
.dl-item {
    display: flex;
    flex-wrap: wrap;
}
.about .dl-item {
    width: 760px;
    height: 80px;
}
.dl-item dt {
    width: 15%;
}
.dl-item dd {
    width: 85%;
    margin-inline-start: 0px;
}
.about p {
    width: 900px;
    margin: 80px auto;
}
.hobby h2 {
    font-weight: normal;
    font-size: 50px;
}
.hobby-img {
    padding: 15px 0 80px;
}
.zoom-box {
    width: 200px;
    height: 200px;
    position: relative;
    transition: 0.5s;
}
.zoom-box p {
    color: #fff;
    width: 100%;
    margin: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 77px 0;
}
.zoom-box p span {
    font-size: 20px;
}
.zoom-box:hover {
    transform: scale(1.1);
}
.zoom-box:hover p {
    opacity: 1;   
}

/* ----------works-page---------- */
.works-main h2 {
    font-size: 60px;
}
.description {
    width: 900px;
    margin: 80px auto 50px;
}
.banner  {
    padding-bottom: 60px;
}
.works-dl {
    padding-bottom: 80px;
}
.works-dl .dl-item {
    padding: 50px 0;
}
.works-dl img {
    padding-top: 50px;
}
.works-dl dd p {
    margin-top: 0;
}
.other {
    padding: 50px 0;
}
.other img {
    width: 250px;
    height: auto;
}
.chiunque a {
    color: #334D7A;
}
.chiunque a:hover {
    color: #758AAE;
}

/* ----------タブレットCSS---------- */
@media(max-width: 960px) {
    .container{
        width: 90%;
    }
    .works-item img {
        width: 300px;
        height: 200px;
    }
    .skills-box {
        padding: 0 100px;
    }
    .contact {
        font-size: 40px;
    }
    .contact p::after {
        right: 30px;
    }
    .contact p:hover::after {
        right: 25px;
    }
    /* --about-page-- */
    .about .flex {
        flex-wrap: wrap;
    }
    .about img {
        margin: 30px auto 0;
        width: 50%;
    }
    .about p {
        width: 90%;
    }
    .zoom-box {
        width: 130px;
        height: 130px;
    }
    .zoom-box p {
        padding: 36px 0;
    }
    .zoom-box p span {
        font-size: 16px;
    }
    .zoom-box:hover {
        transform: scale(1.05);
    }
    /* --works-page--  */
    .description {
        width: 90%;
    }
    .works-dl {
        padding-left: 15px;
    }
    .works-dl dt {
        font-weight: bold;
    }
    .other img {
        width: 180px;
    }
}

/* ----------スマホCSS---------- */
@media screen and (max-width: 768px) {
    .hamburger-list {
        background-color: #fff;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        left: 0;
        padding: 20px 20px 40px;
        position: absolute;
        transform: translateX(-100%);
        transition: 0.3s;
        top: 140%;
        width: 100%;
    }
  
    #hamburger:checked ~ .hamburger-list {
        transform: translateX(0%);
        transition: 0.3s;
    }
    .hamburger-button {
        align-items: center;
        appearance: none;
        background-color: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        height: 90px;
        justify-content: center;
        width: 90px;
    }
    #hamburger:checked
      ~ .hamburger-button
      .hamburger-button-mark:nth-of-type(1) {
        transform: translate(2px, 1px) rotate(45deg);
        transform-origin: 0%;
    }
    #hamburger:checked
      ~ .hamburger-button
      .hamburger-button-mark:nth-of-type(2) {
        opacity: 0;
    }
    #hamburger:checked
      ~ .hamburger-button
      .hamburger-button-mark:nth-of-type(3) {
        transform: translate(2px, 3px) rotate(-45deg);
        transform-origin: 0%;
    }
    /*--top--*/
    .index-main {
        background-image: url(images/main_3.png);
    }
    .gnav a {
        font-size: 16px;
        padding: 20px 8px;
    }
    .logo-img img {
        width: 60px;
        margin: 10px 0 0 10px;
    }
    #top h1 {
        padding-top: 70vw;
    }
    #top h1 span {
        font-size: 40px;
    }
    .skills-box {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 20%;
    }
    .skills-content {
        padding-bottom: 100px;
    }
    .qualification{
        width: 100%;
    }
    .site {
        padding: 0;
    }
    .works-box {
        flex-wrap: wrap;
        padding: 0;
    }
    .works-item {
        padding: 0 4% 80px 4%;
    }
    .works-item img {
        width: 100%;
        height: auto;
    }
    .footer h2 {
        padding-bottom: 40px;
    }
    .contact {
        font-size: 5vw;
    }
    .contact p::after {
        content: none;
    }
    /*--about-page--*/
    .about h2 {
        font-size: 30px;
    }
    .about img {
        width: 70%;
    }
    .dl-item {
        display: block;
    }
    .dl-item dt {
        width: 50%;
        font-weight: bold;
        padding-bottom: 10px;
    }
    .dl-item dd {
        width: 90%;
    }
    .about .dl-item {
        width: 95vw;
        height: 100px;
    }
    .hobby h2 {
        font-size: 30px;
    }
    .hobby-img {
        display: block;
    }
    .zoom-box {
        width: 100%;
        display: flex;
        height: 100px;
        margin: 10px 0;
    }
    .zoom-box img {
        width: 100px;
        height: 100px;
        margin-right: 20px;
    }
    .zoom-box p {
        color: #334d7a;
        position: relative;
        opacity: 1;
        background: none;
        display: block;
        padding: 10px 0 0 0;
    }
    .zoom-box:hover {
        transform: none;
    }

    /*--works-page--*/
    .works-main h2 {
        font-size: 40px;
    }
    .description p {
        display: block;
        width: 90vw;
    }
    .works-dl {
        padding-bottom: 30px;
    }
    .other img {
        width: 100%;
        height: auto;
    }
}