@charset "utf-8";

:root {
    /* Color */
    --color-main: #F8FAFF; 
    --color-base: #B9C9FF;
    --color-accent: #FFDBF9;
    --color-text: #222222;

    /* Typography */
    --font-base: "Noto Serif JP", serif;
    --font-weight-light: 100;

    /* Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-round: 50%;
}

body {
    font-family: var(--font-base);
    font-weight: var(--font-weight-light);
}

a, a:link, a:visited, a:hover, a:active {
    text-decoration: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 5vw, 60px);
}


.l-header {
    padding-block: 14px 26px;
}

.header__title {
    font-size: clamp(1.875rem, 1.42rem + 2.27vw, 3.125rem);
    color: var(--color-base);
}

.hamburger {
    display: none;
}

.nav {
    display: flex;
}

.nav__list {
    display: flex;
    gap: 56px;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.nav__link {
    color: var(--color-text);
    text-decoration: none;
}

.nav__link:hover {
    color: var(--color-base);
    text-decoration: underline;
}

.fv {
    display: flex;
    justify-content: space-between;
    gap: 100px;
    height: 700px;
    background-image: url("img/PCFV_background-image.png");
}

.l-fv {
    padding-top: 64px;
    padding-left: 80px;
    padding-left: clamp(1.25rem, -0.114rem + 6.82vw, 5rem);
    padding-right: 80px;
    padding-right: clamp(0.625rem, -0.966rem + 7.95vw, 5rem);
}

.fv__visual {
    position: relative;
}

.fv__visual-book {
    max-width: 420px;
    max-height: 280px;
    width: 100%;
}

.fv__visual-computer {
    position: absolute;
    top: 192px;
    left: 260px;
    max-width: 570px;
    height: auto;
}

.fv__heading {
    font-size: clamp(1.563rem, 0.881rem + 3.41vw, 3.438rem);
    text-align: right;
    margin-left:auto;
}

.fv__heading-cp {
    font-size: clamp(2.188rem, 1.392rem + 3.98vw, 4.375rem);
    background: no-repeat bottom url("img/PCFV_underline.png");
}

.c-section-heading {
    font-size: 50px;
    font-size: clamp(1.875rem, 1.42rem + 2.27vw, 3.125rem);
    font-weight: var(--font-weight-light);
    color: var(--color-base);
    border-bottom: 1px solid currentColor;
    padding-bottom: 20px;
    margin-bottom: 72px;
}

.c-section-heading::before {
    content: "";
    display: inline-block;
    background: no-repeat url("img/book-icon.png") center / contain;
    width: 0.8em;
    height: 0.8em;
    margin-right: 20px;
}

.c-section-subheading {
    text-align: center;
}

.c-sp-br {
    display: none;
}

.l-section {
    padding-top: 110px;
    padding-bottom: 130px;
}

.l-section--bg {
    background-color: var(--color-main);
}

.l-container {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
}

.about__columns {
    display: flex;
    justify-content: space-between;
    gap: 72px;
}

.about__block {
    max-width: 557px;
    width: 100%;
}

.about__heading {
    font-size: 30px;
    margin-bottom: 25px;
}

.about__text {
    margin-bottom: 32px;
    margin-left: 25px;
}

.about__visual {
    position: relative;
    width: 280px;
    height: 280px;
    margin-top: 72px;
    margin-left: 82px;
}

.about__visual-icon {
    position: relative;
    z-index: 10;
}

.about__visual-gradation {
    position: absolute;
    width: 160px;
    height: 160px;
    top: -20%;
    left: -20%;
    z-index: 1;
}

.about__visual-circle {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 70%;
    left: 60%;
}

.blog {
    position: relative;
}

.blog__container {
    display: flex;
    justify-content: center;
}

.blog__list {
    list-style: none;
    margin-bottom: 298px;
}

.blog__item {
    /* display: flex;
    flex-direction: row;
    gap: 32px;
    margin-bottom: 28px; */
    display: grid;
    grid-template-columns: auto 120px 1fr;
    gap: 16px 32px;
    margin-bottom: 28px;
}

.blog__category {
    display: block;
    font-size: 14px;
    max-width: 120px;
    text-align: center;
    margin: 0 auto;
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 3px 8px;
    border-radius: var(--radius-md);
}

.image-divider {
    position: absolute;
    bottom: -250px;
    height: 400px;
}

.works {
    margin-top: 262px;
}

.works__visual {
    display: flex;
    max-width: 300px;
    max-height: 230px;
    width: 100%;
    height: 100%;
}

.works__visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.works__content {
    display: none;
    width: 100%;
    padding: 56px;
}

.works__item {
    display: flex;
    gap: 64px;
}

.works__tab {
    margin-top: 72px;
    display: flex;
    flex-wrap: wrap;
    max-width: 800px;
    margin-inline: auto;
    gap: 0 5px;
}

.works__tab-input {
    display: none;
}

.works__tab-label {
    flex: 1 1 auto;
    padding: 0.7em 1em;
    background:var(--color-main);
    cursor: pointer;
    order: -1;
    text-align: center;
    border: 1px solid var(--color-base);
    border-radius: 0 10px 0 0;
}

.works__tab .works__tab-input:checked + .works__tab-label {
    background: var(--color-base);
    color: var(--color-main);
}

.works__tab .works__tab-input:checked + .works__tab-label + .works__content {
    display: flex;
    flex-direction: column;
    gap: 83px;
    background-color: var(--color-main);
    border: 1px solid #B9C9FF;
}

.works__link {
    display: inline-block;
    text-decoration: none;
    width: 100%;
    font-size: 26px;
    color: #6A92FF;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color-text);
}

.skill {
    position: relative;
}

.skill__container {
    margin-bottom: 278px;
}

.skill__circles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    margin-bottom: 32px;
    place-items: center;
    margin-inline: auto;
}

.skill__circle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-main);
    width: 180px;
	height: 180px;
	border-radius: var(--radius-round);
    border: 3px solid var(--color-base);
    text-align:center;
}

.skill__name {
    font-size: 20px;
    font-family: "Roboto", sans-serif;
    margin-bottom: 20px;
}

.contact {
    margin-top: 262px;
    position: relative;
}

.wpcf7-form {
    margin-top: 50px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-inline: auto;
    border: 1px solid var(--color-base);
    border-radius: var(--radius-sm);
    padding: 40px 50px;
    background-color: var(--color-main);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"]{
    display: inline;
    width: 100%;
    height: 40px;
    background-color: #D9D9D9;
    border: none;
}

.wpcf7-form textarea {
    display: inline;
    width: 100%;
    height: 140px;
    background-color: #D9D9D9;
    border: none;
}

.wpcf7-form input[type="submit"] {
    display: block;
    max-width: 300px;
    width: 100%;
    margin: 32px auto;
    background-color: var(--color-base);
    border: 1px solid var(--color-base);
    border-radius: var(--radius-sm);
    padding: 10px 0px;
}

.wpcf7-form input[type="submit"]:hover {
    color: var(--color-base);
    background-color: var(--color-main);
}

.contact__form {
    margin-top: 50px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-inline: auto;
    border: 1px solid var(--color-base);
    border-radius: var(--radius-sm);
    padding: 40px 50px;
    background-color: var(--color-main);
}

.contact__form-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.contact__input-text {
    display: inline;
    width: 100%;
    height: 40px;
    background-color: #D9D9D9;
    border: none;
}

.contact__input-textarea {
    display: inline;
    width: 100%;
    height: 140px;
    background-color: #D9D9D9;
    border: none;
}

.contact__button {
    display: block;
    max-width: 300px;
    width: 100%;
    margin: 32px auto;
    background-color: var(--color-base);
    border: 1px solid var(--color-base);
    border-radius: var(--radius-sm);
    padding: 10px 0px;
}

.contact__button:hover {
    color: var(--color-base);
    background-color: var(--color-main);
}

.contact__links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 26px;
    margin-bottom: 26px;
}

.contact__links-item {
    padding: 17px 38px;
    border: 1px solid var(--color-accent);
    background-color: var(--color-accent);
    border-radius: var(--radius-sm);
}

.contact__links-item:hover {
    background-color: var(--color-main);
}

.contact__link {
    text-decoration: none;
}

.image__decor {
    position: absolute;
    width: 240px;
    height: 280px;
    background-image: url("img/gradation-box.png");
    background-repeat: no-repeat;
    background-size: contain;
}

.image__decor::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-round);
    background: var(--color-base);
    filter: blur(48px);
}

.image__decor--left {
    top: 30%;
    left: -80px;
}

.image__decor--left::before {
    bottom: 0;
    right: 0;
}

.image__decor--rtop {
    top: 15%;
    right: -150px;
}

.image__decor--blur-only {
    background-image: none;
}

.image__decor--right {
    object-fit: cover;
    bottom: 5%;
    right: -80px;
}

.image__decor--right::before {
    top: 0;
    left: 0;
}

.nav--footer {
    margin-top: 30px;
    margin-bottom: 56px;
}

.footer {
    background-color: var(--color-base);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 60px;
}

.footer__title {
    font-size: 50px;
}

.footer__menu {
    display: flex;
    flex-direction: row;
    column-gap: 60px;
    list-style: none;
}

.footer__copyright {
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

@media screen and ( max-width: 500px ) {

    .l-section {
        padding: 80px 0px;
    }

    .l-container {
        width: 100%;
        padding-inline: 20px;
    }

    .c-sp-br {
        display: block;
    }

    .header {
        position: relative;
    }

    .nav__list {
        display: none;
    }

    #header-menu {
        position: fixed;
        inset: 0;
        background: var(--color-main);
        display: none;
    }

    #header-menu.is-open{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 56px;
    }

    .hamburger {
        display: block;
    }

    .hamburger {
        position: absolute;
        right: 15%;
        cursor:pointer;
        width:32px;
        height:24px;
        z-index:10;
        background-color: var(--color-main);
        border: none;
    }

    .hamburger__line {
        display: block;
        position: absolute;
        width: 100%;
        border-bottom: solid 1px var(--color-text);
        transition: 0.3s;
    }

    .hamburger__line:nth-of-type(1) {
        top:4px;
    }

    .hamburger__line:nth-of-type(2) {
        top:15px;
    }

    .hamburger__line:nth-of-type(3) {
        top:25px;
    }

    .hamburger.open .hamburger__line:nth-of-type(1) {
        top:10px;
        transform: translateY(6px) rotate(-33deg);
    }

    .hamburger.open .hamburger__line:nth-of-type(2){
        opacity:0;
    }

    .hamburger.open .hamburger__line:nth-of-type(3){
        top:22px;
        transform:translateY(-6px) rotate(33deg);
    }

    .fv {
        justify-content: start;
        flex-direction: column;
        gap: 20px;
    }

    .fv__visual {
        display: contents;
    }

    .fv__visual-computer {
        position: static;
        max-width: 320px;
        margin: 24px auto 0;
    }

    .fv__visual-book {
        order: 1;
        max-width: 260px;
    }

    .fv__heading {
        order: 2;
        display: inline-block;
        text-align: left;
        font-size: 25px;
        margin-left: 0;
    }

    .fv__visual-computer {
        order: 3;
        position: static;
        max-width: 320px;
        margin: 24px auto 0;
    }

    .fv__heading-cp {
        font-size: 30px;
    }

    .about__columns {
        flex-direction: column;
    }

    .about__heading {
        text-align: center;
    }

    .about__visual {
        margin: 0 auto;
    }

    .about__block {
        max-width: auto;
    }

    .about__text {
        margin-left: 0;
    }

    .image-diver-right {
        display: flex;
        width: 100%;
        align-items: flex-end;
        justify-content: right;
    }
    
    .image-divider-item {
        width: 340px;
        height: 200px;
    }

    .blog__list {
        margin-bottom: 125px;
    }   

    .blog__item {
        grid-template-columns: auto 1fr;
        grid-template-areas:
        "date category"
        "date content";
        align-items: start;
    }

    .blog__date {
        grid-area: date;
    }

    .blog__category {
        grid-area: category;
        margin: 0;
    }

    .blog__content {
        grid-area: content;
    }

    .works {
        margin-top: 10px;
    }

    .works__content {
        padding: 22px;
    }

    .works__item {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .skill__container {
        margin-bottom: 0;
    }

    .skill__circles {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill__circle {
        padding-top: 10px;
        width: 120px;
        height: 120px;
    }

    .skill__name {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .image__decor--right {
        display: none;
    }

    .image__decor--rtop {
        display: none;
    }

    .image__decor--left {
        top: 10%;
        left: -35%;
    }

    .contact__links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .contact__links-item {
        width: 60%;
    }

    .contact__button {
        width: 60%;
    }
}