@charset "UTF-8";

/* =================
common
================= */

:root {
    --main-font: "Noto Sans JP", sans-serif;
    --title-font: "Zen Maru Gothic", sans-serif;
    --primary-green: #A5C47A;
    --primary-lightgreen: #D6E9B8;
    --primary-darkgreen: #556B2F;
    --primary-beige: #F3EEDA;
    --primary-offwhite: #FFFDF4;
    --font-color: #333333;
}

html {
    font-size: 62.5%;
}

body {
    background-color: var(--primary-beige);
    font-family: var(--main-font);
    color: var(--font-color);
}

img {
    max-width: 100%;
    height: auto;
}

/*========================
header
========================*/

.header {
    height: 153px;
    display: flex;
    justify-content: space-between;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .header {
        height: 74px;
        display: flex;
        justify-content: space-between;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        position: relative;
    }
}

.header__topic {
    display: flex;
    align-items: center;
    width: 100px;
    height: 60px;
    margin: 0;
    padding: 0;
}

.header__topic img {
    width: 100px;
    height: auto;
}

@media screen and (max-width: 768px) {
    .header__topic img {
        width: 65px;
        height: auto;
    }
}

.nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    gap: 30px;
    margin-left: auto;
    width: auto;
    color: #2f2725;
}

@media screen and (max-width: 768px) {
    .nav__list {
        display: none;
    }
}

/* 中心から外に線が伸びる（下部）*/

.nav__list li a {
    /*線の基点とするためrelativeを指定*/
    position: relative;
}

.nav__list li a:hover {
    color: #2f2725;
}

.nav__list li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: -5px;
    left: 10%;
    /*線の形状*/
    width: 80%;
    height: 1px;
    background: #2f2725;
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);
    /*X方向0、Y方向1*/
    transform-origin: center top;
    /*上部中央基点*/
}

/*現在地とhoverの設定*/
.nav__list li a:hover::after {
    transform: scale(1, 1);
    /*X方向にスケール拡大*/
}

.nav__item {
    font-family: var(--title-font);
    font-size: 1.6rem;
    text-align: center;
    padding: 20px 15px;
}

.menu {
    display: none;
}

/* nav menu */
@media screen and (max-width: 768px) {
    .hamburger {
        position: absolute;
        right: 20px;
        top: 35px;
        width: 30px;
        height: 18px;
        cursor: pointer;
        z-index: 9999;
        transform: translateY(-50%);
    }

    .hamburger__line {
        position: absolute;
        width: 30px;
        height: 2px;
        background-color: #2f2725;
        border-radius: 2px;
        transition: all 400ms ease;
        transform: rotate(0deg);
    }

    /* 線の位置（通常） */
    .hamburger__line:nth-child(1) {
        top: 0px;
    }

    .hamburger__line:nth-child(2) {
        top: 8px;
    }

    .hamburger__line:nth-child(3) {
        top: 16px;
    }

    /* ×変形（2本） */


    /* ×変形（3本） */

    .hamburger.open .hamburger__line:nth-child(1) {
        top: 8px;
        transform: rotate(45deg);
    }

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

    .hamburger.open .hamburger__line:nth-child(3) {
        top: 8px;
        transform: rotate(-45deg);
    }

    /* メニュー本体 */
    .menu {
        position: relative;
        flex-direction: column;
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-20px);
        transition: all 400ms ease;
        width: 375px;
        background-color: #f3eeda;
        color: #333333;
        font-family: var(--title-font);
        font-size: 2rem;
        text-align: center;
        align-items: center;
        padding: 130px 0;
        gap: 55px;
        margin-top: 50px;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .menu::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url(../images/backSP.png);
        background-repeat: repeat;
        background-position: 50% 10%;
        background-size: contain;
        opacity: 0.5;
        z-index: -1;
    }

    .menu.open {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }

    .menu__item {
        display: flex;
        align-items: center;
        gap: 55px;
        text-decoration: none;
        font-size: 2rem;
        color: inherit;
        padding-bottom: 10px;
    }

    .menu__item:last-child {
        border-bottom: none;
    }

    /* アニメーション */

    /* 左から右 */
    .slide-left-enter-active,
    .slide-left-leave-active {

        transition: all 400ms ease;

    }

    .slide-left-enter-from,
    .slide-left-leave-to {
        opacity: 0;
        transform: translateX(-20px);
    }

    .slide-left-enter-to,
    .slide-left-leave-from {
        opacity: 1;
        transform: translateX(0);
    }

    .menu__btn {
        display: inline-block;
        padding: 20px 36px;
        border-radius: 20px;
        border: 4px solid #FFF;
        background-color: #E99A70;
        color: #FFF;
        font-family: var(--title-font);
        font-size: 1.7rem;
        font-weight: 700;
        margin: 60px auto 100px;
        transition: 0.4s;
        box-shadow: 0 4px 0 #E99A70;
    }

    .menu__btn:hover {
        transform: translateY(4px);
        box-shadow: none;
        background-color: var(--primary-green);
    }
}

/*========================
message
========================*/

.greenback{
    background-color: var(--primary-darkgreen);
}

.mainVisual {
    position: relative;
    max-width: 2000px;
    height: 636px;
    margin: 0 auto;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .mainVisual {
        max-width: 100%;
        height: 636px;
    }
}

.top_txt {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--primary-offwhite);
    font-family: var(--title-font);
    font-size: 3rem;
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .top_txt {
        position: absolute;
        top: 20px;
        left: 20px;
        color: var(--primary-offwhite);
        font-family: var(--title-font);
        font-size: 2.8rem;
        font-weight: 700;
    }
}

.main__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    width: auto;
}

@media screen and (max-width: 768px) {
    .main__logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 0;
        width: 70%;
        max-width: none;
    }
}

.main__logo img {
    width: 450px;
    height: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .main__logo img {
        width: 250px;
        height: auto;
        display: block;
    }
}

.bottom_txt {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--primary-offwhite);
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1rem;
}

.company-name {
    font-size: 3.5rem;
    margin-right: 0.5em;
}

@media screen and (max-width: 768px) {
    .company-name {
        font-size: 3.2rem;
        margin-right: 0.5em;
    }
}

.company-suffix {
    font-size: 2.6rem;
}

@media screen and (max-width: 768px) {
    .company-suffix {
        font-size: 2.4rem;
    }
}

.message {
    position: relative;
    max-width: 100%;
    height: auto;
    background-image: url(../images/backPC.png);
    background-size: cover;
    background-position: center;
}

.message::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 768px) {
    .message {
        position: relative;
        width: 100%;
        height: auto;
        background-image: url(../images/backSP.png);
        background-size: cover;
        background-position: center;
    }

    .message::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.5);
    }
}

.mainMessage {
    position: relative;
    text-align: center;
    z-index: 2;
    font-family: var(--title-font);
    font-size: 3.2rem;
    font-weight: 700;
    padding: 217px 13% 0;
}

.spBr {
    display: none;
}

@media screen and (max-width: 768px) {
    .mainMessage {
        position: relative;
        text-align: center;
        z-index: 2;
        font-family: var(--title-font);
        font-size: 2.3rem;
        font-weight: 700;
        padding: 163px 13% 0;
    }

    .spBr {
        display: block;
    }
}

.subMessage {
    position: relative;
    text-align: center;
    z-index: 2;
    font-family: var(--title-font);
    font-size: 2.4rem;
    padding: 120px 8% 186px;
    line-height: 1.5;
}

.spBr {
    display: none;
}

@media screen and (max-width: 768px) {
    .subMessage {
        position: relative;
        text-align: center;
        z-index: 2;
        font-family: var(--title-font);
        font-size: 1.9rem;
        padding: 80px 5% 185px;
        line-height: 1.7;
    }

    .spBr {
        display: block;
    }
}

/*========================
services
========================*/

.services {
    background-color: var(--primary-lightgreen);
    max-width: 100%;
}

.title {
    position: relative;
    text-align: center;
    font-family: var(--title-font);
    font-size: 3rem;
    font-weight: 700;
    padding-top: 140px;
}

.title::after {
    content: '';
    position: absolute;
    display: block;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 30px;
    background-color: var(--font-color);
}

@media screen and (max-width: 768px) {
    .title {
        position: relative;
        text-align: center;
        font-family: var(--title-font);
        font-size: 2rem;
        font-weight: 700;
        padding-top: 120px;
    }

    .title::after {
        content: '';
        position: absolute;
        display: block;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 23px;
        background-color: var(--font-color);
    }
}

.services-list {
    display: flex;
    gap: 8%;
    max-width: 1320px;
    margin: 0 auto;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
    .services-list {
        display: flex;
        flex-direction: column;
        gap: 8%;
        max-width: 768px;
        margin: 100px auto 0;
        align-items: center;
    }
}

@media screen and (min-width: 769px) and (max-width: 830px) {
    .services-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8%;
        max-width: 830px;
        margin: 100px auto 0;
    }
}

.services-item {
    border: 0px solid red;
}

.service-title1,
.service-title2 {
    font-family: var(--title-font);
    font-size: 2.4rem;
    font-weight: 700;
}

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

    .service-title1,
    .service-title2 {
        font-family: var(--title-font);
        font-size: 2rem;
        font-weight: 700;
    }
}

.service-title1 {
    background-image: url(../images/service-title1.png);
    width: 337px;
    height: 337px;
    background-size: contain;
    background-repeat: no-repeat;
    padding-top: 95px;
    padding-left: 65px;
    margin-left: 10px;
}

@media screen and (max-width: 768px) {
    .service-title1 {
        background-image: url(../images/service-title1.png);
        width: 247px;
        height: 247px;
        background-size: contain;
        background-repeat: no-repeat;
        padding-top: 60px;
        padding-left: 35px;
        margin-left: 20px;
    }
}

.service-title2 {
    background-image: url(../images/service-title2.png);
    width: 337px;
    height: 337px;
    background-size: contain;
    background-repeat: no-repeat;
    padding-top: 95px;
    padding-left: 40px;
    margin-left: 80px;
}

@media screen and (max-width: 768px) {
    .service-title2 {
        background-image: url(../images/service-title2.png);
        width: 247px;
        height: 247px;
        background-size: contain;
        background-repeat: no-repeat;
        padding-top: 80px;
        padding-left: 18px;
        margin-left: 115px;
    }
}

.service-desc {
    font-size: 2rem;
    line-height: 1.5;
    margin-bottom: 40px;
    padding: 12px;
}

@media screen and (max-width: 768px) {
    .service-desc {
        font-size: 1.5rem;
        line-height: 1.5;
        margin-bottom: 35px;
        padding: 0 5% 0 5%;
    }
}

.service-desc:first-of-type {
    margin-top: 70px;
}

.services-item:nth-child(1) {
    /* 企画立案 */
    margin-bottom: 300px;
}

@media screen and (max-width: 768px) {
    .services-item:nth-child(1) {
        /* 企画立案 */
        margin-bottom: 30px;
        width: 100%;
    }
}

@media screen and (min-width: 769px) and (max-width: 830px) {
    .services-item:nth-child(1) {
        /* 企画立案 */
        margin-bottom: 30px;
    }
}

.services-item:nth-child(2) {
    /* クリエイティブ制作 */
    margin-top: 500px;
    padding-bottom: 120px;
}

@media screen and (max-width: 768px) {
    .services-item:nth-child(2) {
        /* クリエイティブ制作 */
        margin-top: 200px;
    }
}

@media screen and (min-width: 769px) and (max-width: 830px) {
    .services-item:nth-child(2) {
        /* クリエイティブ制作 */
        margin-top: 200px;
    }
}

/*========================
workflow
========================*/

.flow-list {
    border: 0px solid red;
    display: flex;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
    .flow-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.flow-item {
    width: 380px;
    height: 692px;
    border-radius: 200px 35px 35px 35px;
    background: var(--primary-lightgreen);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 220px;
    margin-bottom: 300px;
}

@media screen and (max-width: 768px) {
    .flow-item {
        width: 322px;
        height: 598px;
        border-radius: 200px 35px 35px 35px;
        background: var(--primary-lightgreen);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .flow-item:first-of-type {
        margin-top: 140px;
    }

    .flow-item:last-of-type {
        margin-bottom: 200px;
    }
}

.flow-number {
    color: var(--primary-darkgreen);
    font-family: var(--title-font);
    font-size: 9rem;
    font-weight: 700;
    position: absolute;
    top: 0;
    left: 0;
}

@media screen and (max-width: 768px) {
    .flow-number {
        color: var(--primary-darkgreen);
        font-family: var(--title-font);
        font-size: 8rem;
        font-weight: 700;
        position: absolute;
        top: 20px;
        left: 0;
    }
}

.flow-icon {
    width: 167px;
    height: 140px;
    align-items: center;
    margin-top: 100px;
}

@media screen and (max-width: 768px) {
    .flow-icon {
        width: 167px;
        height: 140px;
        align-items: center;
        margin-top: 70px;
    }
}

.flow-title {
    text-align: center;
    font-family: var(--title-font);
    font-size: 2.3rem;
    font-weight: 700;
    margin: 50px auto;
}

@media screen and (max-width: 768px) {
    .flow-title {
        text-align: center;
        font-family: var(--title-font);
        font-size: 2rem;
        font-weight: 700;
        margin: 40px auto;
    }
}

.flow-desc {
    font-size: 1.8rem;
    line-height: 2;
    padding: 0 20px 30px;
}

@media screen and (max-width: 768px) {
    .flow-desc {
        font-size: 1.6rem;
        line-height: 2;
        padding: 0 20px 0 20px;
    }
}

.arrow1,
.arrow2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 55px;
}

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

    .arrow1,
    .arrow2 {
        transform: rotate(90deg);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 55px;
    }
}

/*========================
contact
========================*/

.contact {
    background-color: var(--primary-green);
    text-align: center;
}

.contact-txt {
    text-align: center;
    font-family: var(--title-font);
    font-size: 2.6rem;
    margin-top: 125px;
}

@media screen and (max-width: 768px) {
    .contact-txt {
        text-align: center;
        font-family: var(--title-font);
        font-size: 1.8rem;
        margin-top: 95px;
    }
}

.btn {
    display: inline-block;
    padding: 30px 100px;
    border-radius: 20px;
    border: 4px solid #FFF;
    background-color: #E99A70;
    color: #FFF;
    font-family: var(--title-font);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 130px auto 200px;
    transition: 0.4s;
    box-shadow: 0 4px 0 var(--primary-darkgreen);
}

@media screen and (max-width: 768px) {
    .btn {
        display: inline-block;
        padding: 20px 36px;
        border-radius: 20px;
        border: 4px solid #FFF;
        background-color: #E99A70;
        color: #FFF;
        font-family: var(--title-font);
        font-size: 2rem;
        font-weight: 700;
        margin: 60px auto 150px;
        transition: 0.4s;
        box-shadow: 0 4px 0 var(--primary-darkgreen);
    }
}

.btn:hover {
    transform: translateY(4px);
    box-shadow: none;
    background-color: #A5C47A;
}

/*========================
company-info
========================*/

.company-list {
    max-width: 600px;
    margin: 80px auto 150px;
    padding: 50px;
    font-size: 2rem;
    line-height: 3;
}

@media screen and (max-width: 768px) {
    .company-list {
        max-width: 600px;
        margin: 60px auto 120px;
        padding: 10px;
        font-size: 1.6rem;
        line-height: 3.5;
    }
}

.company-item-title,
.company-item-value {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 5px 10px;
}

.company-item-title {
    width: 30%;
    text-align: right;
    padding-right: 20px;
    white-space: nowrap;
    font-weight: normal;
}

.company-item-value {
    width: 65%;
    text-align: left;
    white-space: pre-line;
}

.company-item-value:last-of-type {
    line-height: 27px;
}

/*========================
footer
========================*/

.footer {
    background-color: var(--primary-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.footer__logo img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .footer__logo img {
        width: 80px;
        height: auto;
        margin-bottom: 20px;
    }
}

.copy {
    text-align: center;
    color: #2f2725;
}

/*========================
top_btn
========================*/

/*リンクの形状*/
#page-top a {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    background: rgba(233, 154, 112, 0.8); 
    border-radius: 50px;
    width: 60px;
    height: 60px;
    color: var(--primary-offwhite);
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--title-font);
    transition: background-color 0.4s ease;
}

#page-top a i {
    font-size: 1.5rem; /* アイコンサイズ調整 */
    line-height: 1;
    margin-bottom: 4px; /* アイコンとテキストの間に余白 */
}

#page-top a span {
    font-size: 1.4rem;
}

#page-top a:hover {
    background: rgba(233, 154, 112, 1); /* ホバー時に濃く */
}

/*リンクを右下に固定*/
#page-top {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    /*はじめは非表示*/
    opacity: 0;
    transform: translateY(100px);
    transition:
        bottom 0.3s ease,
        opacity 0.4s ease,
        transform 0.4s ease;
}

/*　上に上がる動き　*/

#page-top.UpMove {
    animation: UpAnime 0.5s forwards;
    transform: translateY(0);
}

@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

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

/*　下に下がる動き　*/

#page-top.DownMove {
    animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(100px);
    }
}