:root {
    --bgback: #fdf3e8;
    --bgmain: #fdf3e8;
    --base: #6a513b;
    --subcolor: #ec8804;

    --black: #333;
    --white: #fff;
    --gray: #ccc;
    --lightBrown: #b1a79f;

    --darkGreen: #4d562a;
    --midiumGreen: #799417;
    --lightGreen: #bcd75a;

    --header-h: 50px;
    --footer-h: 25px;

    --shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
}


html {
  font-size: 16px;
}

body {
    font-family: "Quicksand", "Kosugi Maru", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 1rem;
    background: var(--bgback);
    line-height: 1.8em;
    color: var(--black);
}

h1, h2, h3 {
  font-weight: 800;
}

ul {
    padding-left: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--darkGreen);
}

a:visited {
    color: var(--darkGreen);
}

a:hover{
    color: var(--midiumGreen);
}

a:active {
    color: var(--lightGreen);
}

header a,
header a:visited,
header a:hover,
footer a,
footer a:visited,
footer a:hover {
    color: var(--white);
}


/* header */
header {
    background-color: var(--base);
    color: var(--white);
    height: var(--header-h);
}

.header-inner {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1250px) {
  .header-inner {
    padding: 0 30px;
  }
}

@media (max-width: 599px) {
  .header-inner {
    padding: 0 10px 10px 10px;
    line-height: 1em;
  }
}

header .header-left ul li {
    display: inline-block;
    margin-left: 30px;
}

@media (max-width: 599px) {
    header .header-left ul li {
        margin-left: 15px;
    }
}


/* main */
#main {
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
    background-color: var(--bgmain);
    padding: 50px;
}

@media (min-width: 1024px) {
    #main {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    #main {
        padding: 30px;
    }
}

@media (max-width: 599px) {
    #main {
        padding: 20px;
    }
}

#main h2 {
    margin-top: 0;
}

#greeting {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray);
}

.heading {
    text-align: center;
    margin-bottom: 50px;
}

#profile,
#works,
#skills {
    padding-top: 50px;
    padding-bottom: 80px;
    margin-bottom: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1023px) {
    #profile,
    #works,
    #skills {
        width: 100%;
    }
}

#profile,
#works {
    border-bottom: 1px solid var(--gray);
}

#profile .inner {
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
    margin: 0 auto;
}

#profile .inner .left {
    flex: 0 0 250px;
}

#profile .inner .right {
    flex: 1;
}

#profile .box {
    overflow: hidden;
    width: 100%;
    max-width: 250px;
    border-radius: 12px;
}

#profile .profile-img {
    width: 250px;
    height: 250px;
    background-size: cover;
    background-image: url(../images/nyaataco.jpg);
    transition: transform .6s ease;
}

#profile .profile-img:hover {
    transform: scale(1.1);
}

#profile .discription {
    font-size: small;
    margin-top: 0;
    text-align: right;
    padding-right: 2px;
}

@media (max-width: 599px) {
    #profile .inner {
        display: block;
    }

    #profile .inner .left {
        width: 250px;
        margin: 0 auto;
    }

    #profile .inner .right {
        margin-bottom: 30px;
    }
}

#profile .left .link {
    display: flex;
    justify-content: right;
    align-items: center;
    margin: 0;
}

#profile .link .icon {
    margin: 0 7px;
}

.github {
    font-size: 25px;
}

a.github {
    color: #333;
}

a:hover.github {
    color: #333;
}

.qiita {
    width: 25px;
    height: 25px;
    margin-top: 10px;
}

#works .inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

#works .col {
    aspect-ratio: 5 / 4; 
    background: #cade83;
    overflow: hidden;
    border-radius: 5px;
}

#works .col .link {
    display: block;
    width: 100%;
    height: 100%;
}

#works .col .title {
    margin: 0;
    background: var(--bgmain);
    color: var(--black);
    font-weight: 600;
}

#works .col .box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-radius: 5px;
}

#works .col .image {
    width: 100%;
    height: 100%;
    background-size: cover;
    transition: transform .6s ease;
}

#works .col .image:hover {
    transform: scale(1.1);
}

.pizza {
    background-image: url("../images/midium-sample-pizza.jpg");
    background-position: left center;
}

.cafe-child {
    background-image: url("../images/midium-archive-event.jpg");
    background-position: center;
}

.cafe-blockeditor {
    background-image: url("../images/midium-topimage.jpg");
    background-position: left;
}


#skills .inner {
    display: flex;
    gap: 30px;
    margin: 0 auto;
}

#skills .inner .left,
#skills .inner .right {
    flex: 1;
}

@media (max-width: 599px) {
    #skills .inner {
        display: block;
    }

    #skills .left {
        margin-bottom: 50px;
    }
}

#development li {
    position: relative;
}

#development li::before {
    content: "\f578";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5em;
    color: var(--lightBrown);
}

#qualification li {
    position: relative;
}

#qualification li::before {
    content: "\f4ba";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5em;
    color: var(--lightBrown);
}


/* footer */
footer {
    height: var(--footer-h);
    background-color: var(--base);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: small;
}


/* mountain-tails-cafe */

.mountain-tails-cafe h1 {
    margin-bottom: 50px;
}

.mountain-tails-cafe .text {
    margin: 30px 0;
}

.mountain-tails-cafe .link-style {
    text-decoration: underline;
}

.mountain-tails-cafe .container {
    background-color: #fff;
    padding: 30px;
}

.mountain-tails-cafe .message {
    width: 600px;
    margin: 0 auto;
    text-align: right;
}

.mountain-tails-cafe .message .arrow {
    margin-left: 5px;
    color: var(--base);
}

.mountain-tails-cafe .large-image {
    width: 600px;
    height: 400px;
    margin: 0 auto 30px;
    
    /* スクロールを可能にする */
    overflow: auto;
}

.mountain-tails-cafe .large-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border: solid 1px var(--midiumGreen);
}

@media screen and (max-width: 750px) {
    .mountain-tails-cafe .message {
        width: 100%;
        font-size: 0.7em;   
    }

    .mountain-tails-cafe .large-image {
        width: 100%;
        height: 300px;
    }
}

@media screen and (max-width: 500px) {
    .mountain-tails-cafe .large-image {
        height: 200px;
    }
}

.mountain-tails-cafe .small-images-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.mountain-tails-cafe .small-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 850px;
    width: 100%;
}

.mountain-tails-cafe .image {
    width: 180px;
    height: 100px;
    margin-bottom: 15px;
    background-size: cover;
    background-position: top;
    border: solid 0.5px var(--lightGreen);
    border-radius: 3px;
}

@media (max-width: 900px) {
    .mountain-tails-cafe .small-images {
        max-width: 620px;
    }
}

@media (max-width: 700px) {
    .mountain-tails-cafe .small-images {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        max-width: 450px;
    }
    .mountain-tails-cafe .image {
        width: 120px;
        height: 80px;
    }
}

@media (max-width: 500px) {
    .mountain-tails-cafe .small-images {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .mountain-tails-cafe .image {
        width: 80px;
        height: 50px;
    }
}

.mountain-tails-cafe .small-images .home {
    background-image: url(../images/MoutainTailsCafe/thmbnail-home.jpg);
}

.mountain-tails-cafe .small-images .event {
    background-image: url(../images/MoutainTailsCafe/thumbnail-event.jpg);
}

.mountain-tails-cafe .small-images .event-achive {
    background-image: url(../images/MoutainTailsCafe/thumbnail-event-achive.jpg);
}

.mountain-tails-cafe .small-images .event-single {
    background-image: url(../images/MoutainTailsCafe/thumbnail-event-single.jpg);
}

.mountain-tails-cafe .small-images .blogs {
    background-image: url(../images/MoutainTailsCafe/thmbnail-blogs.jpg);
}

.mountain-tails-cafe .small-images .blog {
    background-image: url(../images/MoutainTailsCafe/thmbnail-blog.jpg);
}

.mountain-tails-cafe .small-images .contact {
    background-image: url(../images/MoutainTailsCafe/thumbnail-contact.jpg);
}

.mountain-tails-cafe .omake {
    margin-top: 80px;
}

.mountain-tails-cafe .sample-images,
.mountain-tails-cafe .retouch {
    display: flex;
}

.mountain-tails-cafe .sample-images img,
.mountain-tails-cafe .retouch img {
    width: 300px;
    padding-bottom: 15px;
}

.mountain-tails-cafe .sample-images img:first-child {
    padding-right: 45px;
}

.mountain-tails-cafe .retouch img:first-child {
    padding-right: 15px;
}

.mountain-tails-cafe .retouch img:last-child {
    padding-left: 15px;
}

.mountain-tails-cafe .retouch .arrow {
    display: flex;
    align-items: center;
}

.mountain-tails-cafe .retouch .arrow::before {   
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f061";
    color: var(--base);
}

@media screen and (max-width: 750px) {
    .mountain-tails-cafe .sample-images,
    .mountain-tails-cafe .retouch {
        display: block;
    }

    .mountain-tails-cafe .retouch img {
        display: block;
    }

    .mountain-tails-cafe .retouch img:first-child {
        padding-right: 0;
        padding-bottom: 5px;
    }

    .mountain-tails-cafe .retouch img:last-child {
        padding-left: 0;
        padding-top: 5px;
    }

    .mountain-tails-cafe .retouch .arrow {
        width: 300px;
        display: flex;
        justify-content: center;
    }

    .mountain-tails-cafe .retouch .arrow::before {
        content: "\f063";
    }
}

.go-to-home {
    text-align: center;
    margin-top: 50px;
}

/* animation */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

h2.heading {
    opacity: 0;
}
