@charset 'utf-8';

/* カスタムリセット・ベース  ------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


section[id] {
    scroll-margin-top: 60px;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    overflow-x: hidden;
    padding-top: 60px;
}

p {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.7;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: #333;
}


:root {
    /* カラー管理 ------------------------------------------------------------*/
    --color-text: #333;
    /* セクションのフォントサイズ ------------------------------*/
    --section-title: clamp(1.5rem, 1.227rem + 1.36vw, 2.25rem);
    /* セクション間のマージン ------------------------------*/
    --section-margin: clamp(4rem, 3.273rem + 3.64vw, 6rem);
}



.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    height: 60px;
    position: relative;
}

.logo {
    font-weight: normal;
    font-size: clamp(1.3rem, 1.118rem + 0.91vw, 1.8rem);
    line-height: 1;
}


.nav_pc ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.nav_pc ul li a {
    display: block;
    padding: 0.6rem 0.8rem;
    font-weight: 600;
    color: inherit;
    position: relative;
}

.sns img {
    display: inline-block;
    width: 1em;
    margin-left: 0.2em;
}

.nav_pc ul li a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: var(--color-text);
    bottom: -1px;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform 0.3s;
}

.nav_pc ul li a:hover::after {
    transform: scale(1, 1);
}

/* ハンバーガーメニュー ----------------------------------------------------------------------- ----------------------------------------------------------------------- */
.hamburger {
    display: none;
    position: fixed;
    top: 1%;
    right: 5%;
    width: 45px;
    height: 45px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 99999;
    padding: 8px;
    touch-action: manipulation;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    transition: 0.3s;
}

/* active時のアニメーション */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(9.5px, 9.5px);
}

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

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(9.5px, -9.5px);
}

/* オーバーレイメニュー ----------------------------------------------------------------------- ----------------------------------------------------------------------- */
/* オーバーレイメニューの基本 */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.overlay-menu ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.overlay-menu li {
    margin: 1rem 0;
}

.overlay-menu a {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--color-text);
}

/* 表示時のスタイル */
.overlay-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.main-area {
    display: flex;
    max-width: 1400px;
    gap: 1rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ヒーロー ----------------------------------------------------------------------- ----------------------------------------------------------------------- */
.hero-area {
    flex: 1;
    width: 90%;
    max-height: 500px;
    background: white;
    display: flex;
    gap: 1rem;
    /* padding-right: 2rem; */
    margin: 0 auto;
}

.main-visual {
    position: relative;
    overflow: hidden;
    height: 100%;
    max-width: 1400px;
    width: 100%;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    aspect-ratio: 16 / 9;
}

.main-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* 背景画像 */
.fade-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s ease;
    z-index: 0;
    pointer-events: none;
    will-change: opacity;
}

.fade-bg.active {
    opacity: 1;
    z-index: 1;
}

.catchcopy span {
    display: inline-block;
}



/* copy ----------------------------------------------------------------------- */
.copy-wrapper {
    writing-mode: vertical-rl;
    position: absolute;
    z-index: 9999;
    top: 4%;
    right: 2%;
}

.copy-wrapper p {
    font-size: 18px;
}

.copy-wrapper p span {
    display: inline-block;
    background-color: #ffffff;
    padding: 0.2rem;
    margin-left: 1rem;
}


/* 共通パーツ ----------------------------------------------------------------------- */
.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

/* Worksセクション----------------------------------------------------------------------- */

.works {
    margin-top: clamp(4rem, 2.909rem + 5.45vw, 7rem);
}

.section-title {
    margin-bottom: clamp(2.5rem, 1.955rem + 2.73vw, 4rem);
    font-size: var(--section-title);
    font-weight: 500;
}

.work-title {
    margin-bottom: 10px;
    font-weight: normal;
    font-size: 1.2rem;
}

.work-title span {
    font-size: 14px;
}

.work-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 6rem;
}


.work-main-image-wrapper {
    width: 50%;
    background-color: #e2e2e2;
    border: 1.5px solid #333;
    box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
    /* アスペクト比を wrapper に持たせる */
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 1rem;
}

.main-img {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.main-img-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}


.main-img-item.active {
    opacity: 1;
    z-index: 1;
}

.work-slide-wrapper {
    display: flex;
    width: 50%;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.swiper.work-slide {
    width: 100%;
}

.swiper-slide {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.slide-inner {
    padding: 0.5rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #333;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper,
.swiper-wrapper {
    width: 100%;
}

.swiper-wrapper-container {
    position: relative;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-button-prev {
    left: -1.5rem;
}

.swiper-button-next {
    right: -1.5rem;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.5rem;
    color: #333;
}

.work-slide-wrapper .swiper-pagination {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: auto;
}

.swiper-pagination-bullet {
    background-color: #4a4a4a;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #fe8c46;
    transform: scale(1.2);
}


.work-text-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    justify-content: space-between;
}

.work-text-wrapper p {
    flex-grow: 1;
}

.work-text-wrapper h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
}

.work-text-wrapper h4 span {
    font-size: 14px;
    font-weight: normal;
    color: #545454;
}

.work-text-wrapper p {
    font-size: 15px;
}

.work-btn-container {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    gap: 1rem;
}

.work-btn-wrapper {
    display: flex;
    justify-content: flex-end;
}

.work-btn-wrapper a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    border: 1px solid #333;
    font-size: 1rem;
    transition: .4s;
    font-weight: 700;
    width: 180px;
}

.work-btn-wrapper a::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(45deg);
}

.work-btn-wrapper a:hover {
    color: #fff;
    background-color: #333;
}

.work-btn-wrapper a:hover::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: rotate(45deg);
}


.work-slide-wrapper .slide img:hover {
    filter: brightness(1.5);
    transform: scale(1.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-left: auto;
    margin-bottom: 1rem;
}

.tool-tags .tag {
    display: inline-block;
    font-size: 12px;
    padding: 0.4em 0.8em;
    /* border: 1px solid #333; */
    background-color: #333;
    color: #fff;
}

/* 私について */

.about-container {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: var(--section-margin);

}

.about-text-wrapper,
.about-pic-wrapper {
    height: auto;
}

.about-text-wrapper {
    width: 50%;
    min-height: 300px;
    background-color: #ffffff;
    padding: 1rem;
}

.about-text-wrapper p {
    margin-bottom: 1em;
}

.about-text-wrapper h4 {
    font-weight: 500;
    margin-bottom: 0.6em;
}

.about-pic-wrapper {
    width: 50%;
    height: auto;
}

.about-pic-wrapper img {
    width: 100%;
    height: 100%;
    padding: 1rem;
    object-fit: cover;
    display: block;
}

.about h3 {
    padding: 1rem;
    font-weight: 500;
}

.about h3 rt {
    margin-bottom: 0.3em;
    font-weight: normal;
    font-size: 0.5em;
}

/* フッター */

.footer {
    text-align: center;
    padding: 2rem;
    background-color: #333;
}

.footer small {
    color: #fff;
}

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

    .nav_pc {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .swiper-slide {
        width: 100%;
    }

    .hero-area {
        max-height: 600px;
    }

    .main-visual {
        aspect-ratio: 9 / 16;
    }

    .work-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .work-main-image-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;

        aspect-ratio: 4 / 3;
    }

    .work-slide-wrapper {
        width: 100%;
    }

    .main-slide {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    .copy-wrapper p {
        font-size: 16px;
    }

    .copy-wrapper p span {
        background-color: #ffffff;
        padding: 0.2rem;
        margin-left: 0.8rem;
    }

    .about-container {
        flex-direction: column-reverse;
        gap: 1rem;

    }

    .about-text-wrapper {
        width: 100%;
    }



    .about-pic-wrapper {
        width: 100%;

    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-bg {
        transition: none;
    }

    .main-visual::before {
        animation: none;
    }
}