@charset "UTF-8";

/* 共通 */
* {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    text-decoration: none;
    list-style-type: none;
    vertical-align: bottom;
    color: inherit;
    padding: 0;
    margin: 0;
}


/* style */
html {
    color: #5292CA;
    background-image: url(../image/background/background_image.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: #F7C9DD;
    scroll-behavior: smooth;
}

.wrapper {
    background-color: #F7C9DD;
    width: 960px;
    margin: 0 auto;
}

.top {
    height: 100vh;
}

.top, section {
    padding: 2.5rem 0 3rem;
    box-sizing: border-box;
}

/* header */
.title {
    color: #FFF168;
    text-shadow: 1px 1px 2px #777777;
    font-family: 'Fascinate Inline','Hachi Maru Pop','M PLUS Rounded 1c', cursive;
    letter-spacing: 0.5rem;
}

.pikopiko {
    display: flex;
    flex-wrap: wrap;
    font-size: 3rem;
    width: auto;
}

.pikopiko span {
    font-family: 'Fascinate Inline','M PLUS Rounded 1c', cursive;
    animation: pikopiko 2s infinite;
}

.pikopiko span:first-child {
    animation-delay: 0.2s;
}

.pikopiko span:nth-child(2) {
    animation-delay: 0.4s;
}

.pikopiko span:nth-child(3) {
    animation-delay: 0.6s;
}

.pikopiko span:nth-child(4) {
    animation-delay: 0.8s;
}

.pikopiko span:nth-child(5) {
    animation-delay: 1s;
}

.pikopiko span:nth-child(6) {
    animation-delay: 1.2s;
}

.pikopiko span:nth-child(7) {
    animation-delay: 1.4s;
}

.pikopiko span:nth-child(8) {
    animation-delay: 1.6s;
}

.reverse {
    display: flex;
    flex-direction: column-reverse;
}

.center {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav {
    color: #5292CA;
    display: flex;
    justify-content: space-around;
}

.global-nav__item {
    font-size: 1.5rem;
    letter-spacing: 0.25rem;
}

.global-nav__item:hover {
    color: #FFF168;
    opacity: 0.6;
}

.child-nav {
    position: absolute;
    width: 100%;
    min-width: max-content;
}

.child-nav__list {
    overflow: hidden;
    height: 0;
}

.global-nav__item:hover > .child-nav > .child-nav__list {
    overflow: visible;
    height: 100%;
}

.child-nav__list a:hover {
    color: #5292CA;
}

/* main */
.content__title {
    font-size: 2.25rem;
    padding-left: 1.25rem;
    margin-bottom: 5rem;
}

.square {
    background-color: #FFF168;
    width: 95.8%;
    border-radius: 1rem;
    margin: 0 auto;
}

.profile__heading {
    font-size: 1.75rem;
    text-shadow: 1px 2px 2px #ffffff;
    letter-spacing: 0.25rem;
    text-align: center;
    padding: 1.5rem 0;
}

.profile__lead {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 3rem;
    font-size: 1.375rem;
    font-weight: 300;
    padding: 0 3.75rem 5.25rem;
}

.profile__img {
    float: right;
}

.profile__flex {
    display: grid;
    grid-template-columns: 0.28fr 0.72fr;
    line-height: 2;
}

.profile__list-item {
    text-align: justify;
    letter-spacing: 0.1rem;
    padding-right: 1rem;
}

.profile__list-item::after {
    content: '：';
}

.content-center {
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content-center__web {
    justify-content: inherit;
    align-items: inherit;
}

.skill__list {
    display: grid;
    grid-template-columns: repeat(3, 18.75rem);
    gap: 1.25rem;
}

.skill__box {
    background-color: #FFF168;
    border-radius: 1rem;
}

.skill__menu {
    font-size: 1.5rem;
    text-align: center;
    padding: 2.25rem 0 1.5rem;
}

.skill__text {
    font-weight: 300;
    height: 4.8rem;
    padding: 0 2.25rem;
}

.skill__img {
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 2.5rem;
}

.works__text {
    font-size: 1.5rem;
    letter-spacing: inherit;
    padding: 1rem;
}

.works__list {
    padding: 3.75rem;
}

.works__list-item {
    font-size: 1.75rem;
    text-align: center;
    margin: 0 auto 3rem;
}

.works__list-item:last-child {
    margin: 0;
}

.works__list-item-link {
    display: block;
    background-color: #FFF168;
    border-radius: 3rem;
    padding: 1.125rem  8rem;
}

.works__list-item-link:hover {
    color: #F7C9DD;
    background-color: #5292CA;
    transition: all 0.7s ease;
}

/* Works別ページ */
.works__title {
    font-size: 1.25rem;
    text-align: end;
    padding: 1rem;
}

.works__title a {
    font-family: 'Fascinate Inline','Hachi Maru Pop','M PLUS Rounded 1c', cursive;
}

.works__title a:hover {
    color: #5292CA;
    opacity: 0.4;
}

.works-content__title {
    margin-bottom: 1rem;
}

.works__detail {
    padding-top: 0;
    padding-bottom: 3rem;
}

.works__detail-list {
    padding: 1rem;
}

.works__text-web {
    display: block;
    font-size: 1.125rem;
    letter-spacing: inherit;
    padding: 1rem;
}


.works__detail {
    height: auto;
}

.works__detail-box {
    display: flex;
    padding: 0.625rem;
}

.works__detail-text {
    font-size: 1.125rem;
    letter-spacing: inherit;
    padding: 1rem;
}

.thumbnail img {
    display: block;
    cursor: pointer;
    transition: all 0.5s ease;
}

.thumbnail img:hover {
    opacity: 0.7;
}

.thumbnail:focus + .bg-image {
    display: block;
}

.bg-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    animation: fadeIn 0.5s ease;
}

.bg-image img {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: calc(100vw - 5%);
    transform: translate(-50%, -50%);
}

.works__detail-img {
    text-align: center;
    padding: 2rem 0;
}

.works__detail-img img {
    width: 90%;
}

.works__bonus-list {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 0.8rem;
    padding: 1rem;    
}

.works__list-item:last-child {
    margin: 0 auto;
}

.small {
    font-size: 0.75rem;
}

/* breadcrumb */
.breadcrumb {
    display: flex;
}

.breadcrumb li {
    font-size: 1rem;
    padding: 0.25rem;
}

.breadcrumb li:last-child {
    padding-left: 1rem;
}

.breadcrumb li::after {
    content: '>';
}

.breadcrumb li:last-child::after {
    content: none;
}

.breadcrumb li a {
    padding:0 1rem 0;
}

.breadcrumb li a:hover {
    color: #FFF168;
    opacity: 0.8;
}

/* form */
.form__content {
    width: 900px;
}

.form__text {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
}

input[type="text"], textarea {
    box-sizing: border-box;
    opacity: 0.4;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border-style: none;
    margin-bottom: 0.5rem;
}

.btn {
    font-weight: 300;
    text-align: center;
    height: 4.8rem;
    padding: 1rem;
    margin-top: 3rem;
}

.btn input {
    background-color: #FFF168;
    font-size: 1.5rem;
    border-style: none;
    border-radius: 3rem;
    padding: 1.125rem  8rem;
}

.btn input:hover {
    color: #F7C9DD;
    background-color: #5292CA;
    transition: all 0.7s ease;
}

/* TOP */
.totop {
    opacity: 0.9;
    position: sticky;
    bottom: 1.75rem;
    background-color: #FFF168;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-left: auto;
}

.totop a {
    display: flex;
    overflow: hidden;
    font-weight: bold;
    color: #5292CA;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    position: relative;
    visibility: visible;
    z-index: 10;
    width: 100%;
    height: 100%;
}

.totop:hover {
    background-color: #5292CA;
}

.totop a:hover {
    color: #F7C9DD;
}

/* 上に画像載せられない；；
.on::after {
    content: "";
    display: block;
    background-image: url(../image/pocha/piplup.png);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: -40px;
    right: -1px;
    width: 50px;
    height: 50px;
}
*/

/* footer */
footer {
    color: #FFF168;
    background-color: #5292CA;
    padding: 1rem 0;
}

.footer-nav {
    justify-content: center;
}

.footer-nav__item {
    color: #FFF168;
    padding: 0 1rem;
}

.footer-nav__item:hover {
    color: #F7C9DD;
}

.copy {
    text-align: center;
    padding-top: 1rem;
}


/* タイトルアニメーション */
@keyframes pikopiko {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1em);
    }

    100% {
        transform: translateY(0);
    }
}

/* イメージアニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* レスポンシブ */
@media screen and (max-width:768px) {

    * {
        font-size: 1rem;
    }

    html {
        background-image: none;
    }

    .wrapper {
        background-image: url(../image/background/background_image.png);
        width: auto;
    }

    .top {
        padding: 0;
    }

    .reverse {
        height: 100vh;
    }

    nav {
        background-color: #FFF168;
    }

    .global-nav {
        padding: 0 1rem;
    }

    .global-nav__item {
        border-bottom: dotted 0.25rem #ffffff;
        margin: 1rem 0;
    }

    .global-nav__item:hover {
        color: #ffffff;
    }

    .global-nav__item-link {
        font-size: 0.75rem;
    }

    .child-nav {
        display: none;
    }

    section {
        height: auto;
    }

    .title {
        text-align: center;
        font-size: 1.5rem;
        text-shadow: 1px 1px 2px #777777;
    }

    .pikopiko {
        padding: 0 4.2rem;
        margin: 0 auto;
    }

    .pikopiko span {
        font-size: 2rem;
        animation: none;
    }

    .content__title {
        text-align: center;
        padding: 1rem 0;
        margin-bottom: 0;
    }

    .main-content {
        margin: 1rem 1rem 0;
    }

    .square {
        width: 90%;
    }

    .profile__lead {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 0 2rem;
    }

    .profile__img {
        display: none;
    }

    .profile__flex {
        display: flex;
        justify-content: center;
        flex-direction: column;
        padding: 0.25rem 1.25rem;
    }

    .profile__list-item {
        text-align: center;
        padding-top: 1rem;
        padding-right: 0;
        border-top: dotted 0.25rem #ffffff;
    }

    .profile__list-text {
        text-align: center;
        padding-bottom: 1rem;
    }

    .profile__list-item::after {
        content: none;
    }

    .skill__box {
        box-sizing: border-box;
        width: 270px;
        height: 270px;
        padding: 1rem;
    }

    .skill__list {
        display: flex;
        flex-direction: column;
    }

    .skill__menu {
        font-size: 1.25rem;
        padding: 1rem 0;
    }

    .skill__text {
        font-size: 0.875rem;
        padding-top: 1rem;
        border-top: dotted 0.25rem #ffffff;
    }

    .skill__img img {
        width: 60px;
        height: 60px;
    }

    .breadcrumb li, .breadcrumb li a {
        font-size: 0.75rem;
    }

    .works__title {
        background-color: #5292CA;
    }

    .works__list {
        padding: 0;
    }

    .works__list-item-link {
        padding: 1.125rem  6rem;
    }

    .works__text{
        padding: 1rem 0;
    }

    .works__text,.works__detail-text, .form__text {
        font-size: 1rem;
        text-shadow: 1px 1px 2px #ffffff;
    }

    #button {
        font-size: 1rem;
    }

    .works__detail-box {
        flex-direction: column;
    }

    .thumbnail img {
        margin: auto;
    }

    .small {
        font-size: 0.75rem;
    }

    .works__bonus-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .form__content {
        width: auto;
        padding: 0 1rem;
    }

    input[type="text"], textarea {
        opacity: 0.7;
    }

    .totop {
        opacity: 0.9;
        position: sticky;
        right: none;
        bottom: 1.25rem;
        border-radius: 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 2.75rem;
        height: 2.75rem;
        margin-left: auto;
    }

    .footer-nav__item {
        padding: 0 0.5rem;
    }

    .footer-nav__item a, .copy small {
        font-size: 0.75rem;
    }

}

/* 旧iPhone対策 */
@media screen and (max-width:395px) {

    .wrapper {
        width: auto;
    }

    .pikopiko span {
        font-size: 1.5rem;
        animation: none;
    }
    
    .works__bonus-item img {
        width: 260px;
        height: 260px;
        margin: auto;
    }

    .works__list-item-link, .btn input {      
        padding: 1rem 4rem;
    }

    form {
        margin: auto;
    }

    #button {
        text-shadow: inherit;
    }
}