@charset "UTF-8";

* {
    box-sizing: border-box;
    font-family: 'Times New Roman', 'Yu Gothic', sans-serif;
}

body {
    margin: 0;
/*    background-color: #fde8bd; */
    background: url(../img/texture_00010.jpg);
    color: #46292c;
}
header {
    width: 100%;
    text-align: center;
}
.boldline {
    border-top: 3px solid #46292c;
    margin-top: 10px;
}
h1 {
    font-size: 36px;
    line-height: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.prom p {
    font-size: 20px;
    /* font-weight: bold; */
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    color: #d62e82;
    margin: 0 auto;
    /* background: url(../img/thumbnail.png) cover no-repeat; */
    /* opacity: 0.5; */
}
.pack1 {
    width: 80%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid #9f303b;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
}
.pack1 img {
    width: 50%;
}
.pack1 p {
    font-size: 18px;
    text-align: left;
    color: #46292c;
}
p {
    font-size: 16px;
    padding-left: 20px;
    padding-right: 20px;
}
.uppage {
    display: flex;
    margin-bottom: 50px;
}

h2 {
    font-size: 52px;
    margin-left: 5%;
}

#current {
    width: 100%;
}
.scrape {
    width: 80%;
    margin: 0 auto;
    border: 1px solid #46292c;
    margin-bottom: 20px;
}
.scrape img {
    width: 100%;
}
.scrape a {
    font-size: 24px;
    font-weight: bold;
    color: #9f303b;
}
.cookie {
    width: 80%;
    margin: 0 auto;
    /* display: flex; */
    border: 1px solid #46292c;
    margin-bottom: 20px;
}
.cookie img {
    width: 100%;
}
.cookie a {
    font-size: 24px;
    font-weight: bold;
    color: #9f303b;
}
.momizi {
    width: 80%;
    margin: 0 auto;
    border: 1px solid #46292c;
}

.m-down {
    display: flex;
    /* width: 100%; */
}

#certificate {
    margin-top: 20px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
    width: 40%;
}
#certificate img {
    padding: 20px;
}
#certificate h4 {
    margin-top: 20px;
}
.menuh {
    display: flex;
    justify-content: center;
}
a {
    text-decoration: none;
    color: #46292c;
}
#service {
    border-left: 1px solid #46292c;
    margin-top: 20px;
    margin-bottom: 10px;
}
#service h2 {
    margin-left: 110px;
}
.upsv {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.unitsv {
    width: 40%;
    height: 250px;
    margin-right: 15px;
    padding: 30px;
}

#works {
    width: 100%;
}
#works h2 {
    margin-left: 110px;
}
.samples {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.photounit {
    width: 150px;
    height: 150px;
    border: 1px solid #46292c;
    margin-right: 30px;
}
.photounit a {
    color: #46292c;
}

.img-wrap {
    overflow: hidden;
    position: relative;
}
.img-wrap:before {
    animation: img-wrap 2s cubic-bezier(.4, 0, .2, 1) forwards;
    background: #46292c;
    bottom: 0;
    content: '';
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

@keyframes img-wrap {
    100% {
        transform: translateX(100%);
    }
}

.unitsv h3 {
    text-align: left;
    font-size: 16px;
    padding-left: 30px;
    background-color: #46292c;
    color: #edebda;
    margin-bottom: 20px;
}
.middlepage {
    display: flex;
}
#skills {
    width: 70%;
    margin-top: 50px;
    padding-bottom: 30px;
}
#skills h2 {
    margin-left: 80px;
}

.skillrow {
    display: flex;
    margin-left: 40px;
    margin-top: 30px;
}
.skunit {
    border-right: 1px solid #46292c;
    width: 30%;
    height: 200px;
    margin: 8px;
    padding: 5px;
}
.skillrow .skunit:last-child {
    border-right: none;
}
h4 {
    text-decoration: underline;
    margin-left: 18px;
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 16px;
}
#application {
    margin-top: 50px;
    padding-left: 30px;
    padding-right: 30px;
    margin-right: 40px;
}
#application h2 {
    font-size: 48px;
    margin-right: 40px;
}
#application p {
    margin-top: 30px;
    margin-right: 40px;
}
.shiri {
    width: 30%;
    height: 30px;
    background-color: #e03830;
    color: #edebda;
    border-radius: 10px;
    margin-top: 30px;
    margin-left: 30%;
}
.omikuji {
    width: 30%;
    height: 30px;
    background-color: #46292c;
    color: #edebda;
    border-radius: 10px;
    margin-top: 30px;
    margin-left: 30%;
}
#tips {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 80px;
    margin-right: 5%;
}
#tips h2 {
    margin-bottom: 20px;
    margin-left: 0;
}
#tips h3 {
    margin-top: 15px;
    margin-bottom: 20px;
}
#tips p {
    font-size: 16px;
}
.coding {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    border: 1px solid #46292c;
}
#about h2 {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 80px;
}
.wrapper {
    display: flex;
    margin-left: 80px;
}
.column3 {
    display: block;
    width: 29%;
    margin: 10px;
}
.history {
    border: 1px solid #46292c;
}
.photo {
    background: url(../img/IMG_3316.jpg) left center no-repeat;
    width: 100%;
    height: 300px;
    margin-bottom: 10px;
}
.hobby {
    border: 1px solid #46292c;
}
.words {
    border: 1px solid #46292c;
    margin-bottom: 10px;
}
.skill {
    border: 1px solid #46292c;
}
.column3 h3 {
    color: #46292c;
    font-size: 24px;
    margin-left: 8%;
}
#contact {
    margin: 20px;
    text-align: center;

}
#contact h2 {
    margin-left: 0;
    margin-top: 50px;
}
.toform {
    width: 15%;
    height: 30px;
    background-color: #46292c;
    color: #edebda;
    border-radius: 10px;
    margin-top: 30px;
}
footer {
    width: 100%;
    text-align: center;
    height: 500px;
    margin-top: 50px;
}
footer .menuh {
    margin-bottom: 50px;
}

.code-container {
    white-space: pre;
    overflow-x: auto;  /* 横方向にスクロールを許可 */
    background-color: #f4f4f4;  /* 背景色 */
    padding: 1rem;
    border-radius: 5px;
    font-family: monospace;  /* 等幅フォント */
}

code {
    display: block;
    white-space: pre-wrap; /* 改行を維持しつつ長い行を折り返す */
    word-wrap: break-word; /* 長い単語も折り返す */
}

@media screen and (min-width: 400px) {
    .history:hover,
    .hobby:hover,
    .words:hover,
    .skill:hover {
        border: 1px solid #9f303b;
        color: #9f303b;
        background-color: #b3ffe6;
    }

    a:hover {
        color: #9f303b;
        text-decoration: underline;
    }
}

@media screen and (max-width: 414px) {
    .uppage {
        display: block;
    }
    h2 {
        font-size: 36px;
        text-align: center;
    }
    .menuh {
        display: block;
        text-align: center;
    }
    .pack1 {
        display: block;
        width: 100%;
    }
    .pack1 img {
        width: 90%;
    }
    .m-down {
        display: block;
    }
    #certificate {
        width: auto;
        padding-left: 10px;
        padding-right: 10px;
    }
    #certificate img {
        padding: 0;
        width: auto;
    }
    #certificate h4 {
        margin-top: 10px;
    }
    #service {
        border: none;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    #service h2 {
        margin-left: 10px;
        margin-right: 20px;
    }
    .upsv {
        display: block;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .unitsv {
        width: 100%;
        height: 200px;
        padding: 30px;
    }
    
    #works h2 {
        margin-left: 10px;
    }
    .samples {
        width: 100%;
        display: block;
        margin-top: 20px;
    }
    .photounit {
        width: 150px;
        height: 150px;
        border: 1px solid #46292c;
        margin: 0 auto;
        margin-top: 30px;
    }
    .middlepage {
        display: block;
    }
    #skills {
        width: 100%;
        margin-top: 50px;
        padding-bottom: 30px;
    }
    #skills h2 {
        margin-left: 10px;
    }
    
    .skillrow {
        display: block;
        margin-left: 10px;
        margin-top: 30px;
    }
    .skunit {
        border: none;
        height: 200px;
        margin: 8px;
        padding: 15px;
        width: 100%;
    }

    h4 {
        text-decoration: underline;
        margin-left: 5px;
        margin-top: 5px;
        margin-bottom: 20px;
        font-size: 16px;
    }
    #application {
        margin-top: 50px;
        padding-left: 5px;
        padding-right: 5px;
    }
    #application h2 {
        font-size: 36px;
        text-align: center;
    }
    #application p {
        width: 100%;
        margin-top: 30px;
    }
    .shiri {
        width: 60%;
        height: 50px;
        background-color: #e03830;
        color: #edebda;
        border-radius: 10px;
        margin-top: 30px;
        margin-left: 30%;
    }
    .omikuji {
        width: 60%;
        height: 50px;
        background-color: #46292c;
        color: #edebda;
        border-radius: 10px;
        margin-top: 30px;
        margin-left: 30%;
    }
    #about h2 {
        margin-top: 30px;
        margin-bottom: 30px;
        text-align: center;
    }
    .wrapper {
        display: block;
        width: 80%;
    }
    .column3 {
        display: block;
        width: auto;
        margin: 10px;
    }
    .toform {
        width: 60%;
        height: 50px;
        background-color: #46292c;
        color: #edebda;
        border-radius: 10px;
        margin-top: 30px;
    }
}

