@charset "utf-8";

.about-page-01 {
    margin-bottom: 100px;
}

.about-hero-01 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-hero-01-child img {
    width: 100%;
    max-width: 510px;
    padding-left: 30px;
    padding-right: 30px;
}

.about-hero-01-child p {
    margin: 50px 0;
    padding-left: 30px;
    padding-right: 30px;
}

.circle-about-01 {
    position: relative;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -140px;
}

.about-hero-02 {
    width: 100%;
    white-space: nowrap;
    margin: 0 auto;
    text-align: center;
    margin-top: 100px;
    overflow: hidden;
}

.about-hero-02 img:nth-child(1) {
    max-width: 215px;
    height: auto;
    box-shadow: -55px 55px 0 #F4E9EA;
    margin-bottom: 70px;
}

.about-hero-02 img:nth-child(2) {
    max-width: 258px;
    height: auto;
    margin-left: 90px;
    margin-right: 90px;
}

.about-hero-02 img:nth-child(3) {
    max-width: 190px;
    height: auto;
    box-shadow: 55px -55px 0 #F4E9EA;
    margin-bottom: 50px;
}

.about-page-02 {
    background-color: var(--sab-color);
    color: #FFF;
    font-weight: 300;
    line-height: 3;
    letter-spacing: 3px;
}

.about-page-02 p {
    padding-left: 30px;
    padding-right: 30px;
}

.about-page-03 {
    padding-left: 30px;
    padding-right: 30px;
}

.about-page-content {
    width: 100%;
    max-width: 1040px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding-bottom: 150px;
}

.about-page-content img {
    width: 100%;
    max-width: 340px;
    height: auto;
    box-shadow: 55px 55px 0 #F8F4F4,
                -55px -55px 0 #FCF2F2;
    margin-left: 55px;
    margin-right: 55px;
}

.about-page-content p {
    width: 100%;
    margin-left: 50px;
}

.about-page-works-wrapper {
    width: 100%;
    background-color: #FCF2F2;
    margin: 0 auto;
    padding: 100px;
    border-radius: 30px;
}

.about-page-works-wrapper p {
    position: relative;
    top: -180px;
    font-size: 80px;
    font-family: var(--font-mincho);
    letter-spacing: -2px;
    color: var(--sab-color);
    opacity: 0.5;
    margin-bottom: -180px;
}

.about-page-works-wrapper p::after {
    content: url(../images/works-icon.png);
    margin-left: 20px;
}

.about-page-works-img {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 40px;
    margin: 0 auto;
    text-align: center;
}

/* works アイテム */
.works-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    padding-top: 100%; /* 幅＝高さの正方形 */
}

.works-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.works-item:hover img {
    transform: scale(1.05);
}

/* ホバーコメント */
.works-item-comment {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.works-item:hover .works-item-comment {
    opacity: 1;
}

.works-item-comment span {
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1.5;
}

/* 非表示の写真 */
.works-hidden {
    display: none !important;
}

.works-hidden.visible {
    display: block !important;
    animation: worksFadeIn 0.4s ease both;
}

/* スマホ：タップ時にコメント表示 */
.works-item.tapped .works-item-comment {
    opacity: 1;
}

@keyframes worksFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* もっと見るボタン */
.works-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 48px auto 0;
    padding: 14px 40px;
    background: transparent;
    border: 1px solid var(--sab-color);
    color: var(--sab-color);
    font-size: 15px;
    font-family: var(--font-family);
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.works-more-btn:hover {
    background: var(--sab-color);
    color: #fff;
}

.works-btn-icon {
    transition: transform 0.3s;
}

.works-more-btn.open .works-btn-icon {
    transform: rotate(45deg);
}

/* ---------- */
/* レスポンシブ */
/* ---------- */

@media (max-width:768px) {

    .about-hero-02 img:nth-child(2) {
        margin-left: 20px;
        margin-right: 20px;
    }

    .about-page-content {
        flex-direction: column;
    }

    .about-page-content p {
        margin-top: 100px;
        margin-left: 30px;
        margin-right: 30px;
    }

    .about-page-works-wrapper p {
        font-size: 50px;
    }

    .about-page-works-img {
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }
    .about-page-works-wrapper {
        padding: 100px 50px 50px 50px;
    }

    /* スマホはホバーなしのためデフォルト非表示のまま（JS タップで表示） */
} 

@media (max-width:480px) {
    .about-hero-01 {
        flex-direction: column;
    }

    .about-page-01 {
        margin-bottom: 50px;
    }

    .about-hero-02 {
        margin-top: 0;
    }

    .about-page-02 p {
        text-align: left;
        letter-spacing: 1.5px;
    }

    .about-page-content img {
        width: 100%;
        max-width: 200px;
        height: auto;
        box-shadow: 30px 30px 0 #F8F4F4,
                    -30px -30px 0 #FCF2F2;
        margin-left: 30px;
        margin-right: 30px;
    }

    .about-page-content p {
        margin-top: 50px;
    }

    .about-page-content {
        padding-bottom: 80px;
    }

    .about-page-works-wrapper p {
        top: -160px;
    }

    .about-page-works-wrapper p::after {
        content: url(../images/works-icon-sp.png);
    }

    .about-page-works-wrapper {
        padding: 100px 30px 30px 30px;
    }

}