@charset "UTF-8";

/* 全体共通設定 ==================== */

:root {
    --color-Black: #222222;
    --color-White: #ffffff;
    --color-Main: #F65F21;
    --color-Sub: #D0FD80;
    --color-Gray: #EFEFEF;
    --color-sub_deep: #75B601;

    --font-size_E-Nav: 18px;
    --font-sizeh_E-h2: 36px;
    --font-size_E-Small: 14px;

    --font-size_J-Large: 32px;
    --font-size_J-Normal: 16px;
    --font-size_J-Small: 13px;


}

html {
    font-size: 16px;
    line-height: 1.8;
    font-family: "Montserrat", "Zen Kaku Gothic New", sans-serif;
    background-color: var(--color-White);
    color: var(--color-Black);
    scroll-behavior: smooth;
}

/* レスポンシブイメージ */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 見出しの共通設定 */
h1,
h2,
h3 {
    font-weight: 600;
}

h1 {
    font-size: 64px;
    text-align: center;
}

h2 {
    font-size: var(--font-sizeh_E-h2);
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-Main);
}

p {
    font-weight: 600;
}

/* 各セクションの設定 ==================== */

/* header の設定 */
header {
    background-color: var(--color-White);
    display: flex;
    justify-content: space-between;
    padding: 20px 20px;
    line-height: 1;
    position: sticky;
    top: 0;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
    border-bottom: 3px solid var(--color-Main);
}

header nav {
    display: flex;
    text-align: center;
}

header nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul li {
    padding: 0px 1rem;
    font-weight: 600;
}

header nav ul li:hover {
    color: var(--color-Main);
}

/* main の設定 */
/* main内のinnerWrapの設定 */
.innerWrap {
    max-width: 650px;
    margin: 0 auto;
    border-radius: 45px;
    padding: 30px 65px 65px 65px;
}

/* hero image の設定 */
#works-carousel {
    border-bottom: 3px solid var(--color-Main);
    padding: 4vw 0 6vw;
    margin-bottom: 70px;

    /* 方眼模様のCSS */
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(246, 95, 33, 0.15) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(246, 95, 33, 0.15) 1.5px, transparent 1.5px);
    background-size: 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px;
}

/*  カルーセルの設定　*/
/* ul への指定 */
.splide__slide {
    background-color: aqua;
    box-sizing: border-box;
    border-radius: 40px;
}

/* 左右ボタンの設定 */
.splide__arrow {
    background: none;
}

.splide__arrow--prev {
    left: 12em;
}

.splide__arrow--next {
    right: 12em;
}

/* スクロールマーカーの設定 */
.splide__pagination {
    bottom: 1.5em;
}

.splide__pagination__page {
    border: 2px solid var(--color-Main);
    background-color: var(--color-White);
}

.splide__pagination__page.is-active {
    background-color: var(--color-Main);
}

/* worksのスマートフォン対応 */
@media screen and (max-width: 600px) {
    .splide__slide {
        margin: 0 5%;
        width: 100%;
    }

    #works-carousel {
        padding: 10vw 0 13vw;
    }

    .splide__arrow--prev {
        left: 1em;
    }

    .splide__arrow--next {
        right: 1em;
    }
}



/* worksの設定 */
#works {
    max-width: 1000px;
    margin: 0 auto 70px;
}

.worksList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: space-between;
    gap: 10px;
}

.worksList article img {
    margin-bottom: 16px;
}

.worksList article ul {
    display: flex;
    flex-wrap: wrap;
}

.worksList article ul li {
    background-color: var(--color-Gray);
    font-size: var(--font-size_J-Small);
    margin-right: 10px;
    border-radius: 13px;
    padding: 5px 10px;
    line-height: 1rem;
}

.worksList article h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 3rem;
}

/* worksのスマートフォン対応 */
@media screen and (max-width: 600px) {
    .worksList {
        margin: 0 5%;
    }
}


/* about meの設定 */

#aboutme {
    padding: 80px 5%;
    border-top: 3px solid var(--color-Main);
    border-bottom: 3px solid var(--color-Main);

    /* 方眼模様のCSS */
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(246, 95, 33, 0.15) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(246, 95, 33, 0.15) 1.5px, transparent 1.5px);
    background-size: 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px;
}

#aboutme .innerWrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px;
    background-color: var(--color-White);
}

#aboutme .myself {
    margin-bottom: 40px;
}

#aboutme section:nth-child(3) {
    padding-bottom: 30px;
    border-bottom: 2px solid var(--color-Gray);
    margin-bottom: 18px;
}

#aboutme section h3 {
    color: var(--color-Main);
    margin-bottom: 18px;
}

/*　名前と肩書き */

#aboutme .myself {
    display: flex;
    justify-content: space-between;
}

#aboutme .myself .myname {
    display: flex;
    gap: 30px;
}

#aboutme .myself .myname img {
    width: 78px;
}

#aboutme .myself .nameE {
    font-weight: 600;
}

#aboutme .myself .myname .nameJ {
    font-size: var(--font-size_J-Large);
    font-weight: bold;
}

#aboutme .myself>div:last-child {
    text-align: right;
    color: var(--color-Main);
}

/* skillの設定 */

#aboutme #skillList {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

#aboutme #skillList ul {
    flex-basis: 100%;
}

#aboutme #skillList ul li {
    margin-bottom: 18px;
    font-size: var(--font-size_E-Small);
    font-weight: 600;
}

/* skillバーの設定 */
#aboutme #skill .rating {
    border: 1px solid var(--color-Black);
}

#skill .rating span {
    display: block;
    background-color: var(--color-Sub);
    text-align: center;
    color: var(--color-sub_deep);
}

.rating-20 {
    width: 20%;
}

.rating-40 {
    width: 40%;
}

.rating-70 {
    width: 70%;
}

.rating-90 {
    width: 90%;
}

/* contactの設定 */

#contact {
    background-color: var(--color-Gray);
    padding: 80px 5%;
}

#contact .innerWrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px;
    background-color: var(--color-White);
}

#contact .innerWrap section:first-child {
    margin-bottom: 30px;
    text-align: center;
}

#contact .innerWrap div:last-child p {
    font-weight: inherit;
}

#contact .required {
    color: var(--color-Main);
    font-weight: 600;
}

/*  入力欄の設定　*/
#contact input:not([type="submit"]),
#contact textarea {
    width: 100%;
    padding: 5px 12px;
    border-radius: 5px;
    background-color: var(--color-Gray);
    margin-bottom: 30px;
}


/* お名前・ふりがなの設定 */
#contact .name-fields {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* テキストエリア */
#contact textarea {
    min-height: 180px;
}

/*  送信ボタン*/

#contact .submit {
    text-align: center;
}

#contact form .submit input {
    background-color: var(--color-Main);
    color: var(--color-White);
    text-align: center;
    width: 130px;
    padding: 10px 20px;
    margin: 0 auto;
    border-radius: 30px;
}

#contact .submit :hover {
    opacity: 0.7;
}

/* contactスマートフォンの対応 */
@media screen and (max-width: 600px) {

    #contact {
        padding: 40px 5%;
    }

    #contact .innerWrap {
        padding: 30px 20px;
    }

    #contact .innerWrap div:first-child {
        text-align: left;
    }

    #contact .name-fields {
        gap: 0;
    }
}

/* fotterの設定 */

footer {
    background-color: var(--color-Gray);
    border-top: 2px solid #222222;
    line-height: 1rem;
}

footer .footerContents {
    container-type: inline-size;
    width: 80%;
    margin: 20px auto;
}

footer div {
    text-align: center;
}

footer .navLine {
    border-top: 2px solid #222222;
    border-bottom: 2px solid #222222;
}

footer div>p:nth-child(2) {
    width: 100%;
    font-size: 14cqw;
    font-weight: 600;
    color: var(--color-White);
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

footer div>p:last-child {
    text-align: right;
    font-size: var(--font-size_E-Small);
}

footer nav {
    display: flex;
    text-align: center;
    justify-content: space-between;
    align-items: center;
}

footer nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer nav ul li {
    padding: 0px 1rem;
    font-weight: 600;
}

footer nav ul li:hover {
    color: var(--color-Main);
}

footer nav p:hover {
    color: var(--color-Main);
}

/* fotterのスマートフォン */
@media screen and (max-width: 600px) {
    footer div>p:last-child {
        text-align: center;
    }

}