@charset "utf-8";

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

    body {
        color: #000000;
        font-family: "Noto Sans JP", sans-serif;
        font-size: 16px;
        line-height: 1.6;
        overflow-x: hidden;
    }

    p {
        font-size: 14px;
    }

    .container {
        max-width: 100%;
        margin: 0 10px;
    }



    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10;
    }


    .header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .header__list {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 0;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 15px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
        z-index: 999;
        text-align: center;
        left: -10px;
        width: calc(100% + 20px);
    }

    .header__list.active {
        display: flex;
    }

    .header__item a {
        font-size: 18px;
        color: #000000;
        font-weight: 600;
        padding: 12px 20px;
        display: inline-block;
        width: 100%;
    }

    .header__item a:hover {
        font-size: 14px;
        color: #ff5733;
        background-color: rgba(255, 87, 51, 0.1);
    }

    .header .btn {
        font-size: 18px;
        font-weight: bold;
        background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 40%),
            radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 50%),
            radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 45%),
            radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 35%),
            radial-gradient(circle at 60% 50%, rgba(85, 140, 120, 1), rgba(185, 236, 225, 0) 55%),
            radial-gradient(circle at 25% 55%, rgba(85, 140, 120, 0.9), rgba(185, 236, 225, 0) 60%),
            radial-gradient(circle at 75% 60%, rgba(85, 140, 120, 1), rgba(185, 236, 225, 0) 50%),
            radial-gradient(circle at 50% 20%, rgba(185, 236, 225, 0.75), rgba(185, 236, 225, 0) 70%),
            radial-gradient(circle at 50% 80%, rgba(185, 236, 225, 0.7), rgba(185, 236, 225, 0) 70%);
        color: #333;
        border-radius: 100px;
        padding: 5px 10px 8px;
        margin: 10px;
        text-align: center;
        display: inline-block;
        width: calc(100% - 20px);
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }

    .hamburger span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #000;
    }

    /* メインビジュアル */
    .mv {
        height: 100vh;
        background: url(./img/myportfolio-sp.webp) center/cover no-repeat;
        position: relative;
        width: 100%;
    }

    .mv__inner {
        position: absolute;
        top: 20vh;
        transform: translate(-50%, -50%);
        width: 80vw;
        z-index: 1;
    }

    .mv__inner img {
        width: 100%;
        transform: rotate(-20deg);
    }

    .mv__midddle__inner {
        position: absolute;
        top: 28vh;
        z-index: 0;
    }

    .mv__midddle__inner img {
        width: 70%;
    }

    .mv__midddle__inner img:focus,
    a:focus {
        outline: none;
        box-shadow: none;
    }

    .mv__midddle__inner img:active,
    a:active {
        outline: none;
        box-shadow: none;
    }

    .fusen-wrap {
        position: relative;
        width: 100%;
        max-width: 100vw;
    }

    .fusen-wrap img {
        width: 100%;
        height: auto;
        display: block;
    }

    .mv__midddle__inner .catchphrase {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        /* 少し余裕をもたせる */
        color: #804040;
        font-weight: 700;
        font-size: 0.85rem !important;
        line-height: 1.5;
        text-align: center;
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
        word-break: break-word;
        /* 画面幅をはみ出さないように調整 */
    }

    .mv__midddle__inner .catchphrase p {
        margin: 0.4em 0;
        font-size: inherit !important;
    }








    .section__subtitle {
        text-align: center;
        padding-bottom: 30px;
        font-size: 11px;
        color: #296A65;
    }

    /* Serviceセクション */
    .Service {
        padding-top: 70px;
    }

    .Service .section__title {
        text-align: center;
        font-size: 24px;
        background: url(./img/servicetitle.webp) center/contain no-repeat;
    }

    .Service__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .Service__image {
        display: flex;
        justify-content: center;
        width: 100%;
    }



    .Service__image img {
        width: 50%;
    }

    .Service__textContent {
        max-width: 280px;
        margin: 0 auto;
    }

    .Service__textContent h3 {
        text-align: center;
    }

    /* Worksセクション */
    .Works {
        padding-top: 70px;
    }

    .Works .section__title {
        text-align: center;
        font-size: 24px;
        background: url(./img/worktitle.webp) center/contain no-repeat;
    }

    .Works__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .Works__item {
        width: calc(50% - 10px);
        margin-bottom: 20px;
        text-align: center;
    }

    .Works__image {
        position: relative;
    }

    .Works__image img {
        width: 100%;
        height: auto;
    }

    .Works .osusume {
        width: 80%;
        position: absolute;
        left: 50%;
        bottom: 5%;
        transform: translate(-50%, 30%);
        z-index: 10;
    }

    .Works .new {
        width: 50%;
        position: absolute;
        left: 25%;
        bottom: 10%;
        transform: translate(-50%, 30%);
        z-index: 10;
    }

    .Works__title h3 {
        line-height: 1.8;
        font-size: 13px;
        padding: 10px 0;
    }

    .Category {
        line-height: 1;
        font-size: 11px;
        background-color: #EEEEEE;
        border-radius: 5px;
        padding: 5px 10px;
        text-align: center;
        display: inline-block;
    }

    .btn-container {
        text-align: center;
    }

    .btn-container .btn,
    .Works .btn {
        display: inline-block;
        font-weight: bold;
        font-size: 14px;
        background-image:
            radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 40%),
            radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 50%),
            radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 45%),
            radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 35%),
            radial-gradient(circle at 60% 50%, rgba(85, 140, 120, 1), rgba(185, 236, 225, 0) 55%),
            radial-gradient(circle at 25% 55%, rgba(85, 140, 120, 0.9), rgba(185, 236, 225, 0) 60%),
            radial-gradient(circle at 75% 60%, rgba(85, 140, 120, 1), rgba(185, 236, 225, 0) 50%),
            radial-gradient(circle at 50% 20%, rgba(185, 236, 225, 0.75), rgba(185, 236, 225, 0) 70%),
            radial-gradient(circle at 50% 80%, rgba(185, 236, 225, 0.7), rgba(185, 236, 225, 0) 70%);
        color: #333;
        border-radius: 100px;
        padding: 10px 48px;
        margin: 50px 0 20px;
        text-align: center;
    }

    .Works .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    .Works .btn:active {
        transform: translateY(2px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Aboutセクション */
    .About {
        padding: 40px 0 70px;
        background-color: #f9f3f2;
    }

    .About .section__title {
        text-align: center;
        font-size: 24px;
        background: url(./img/abouttitle.webp) center/contain no-repeat;
    }

    .About__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .About__image img {
        width: 40%;
    }

    .About__textContent {
        max-width: 280px;
        text-align: center;
    }

    .About__textContent h3 {
        line-height: 1.8;
        padding: 20px 10px;
    }

    .About__textContent p {
        text-align: left;
        padding: 0 20px;
    }


    /* Skillsセクション：モバイル用スタイル調整 */
    .Skills {
        padding: 60px 20px 60px;
    }


    .Skills .section__title {
        text-align: center;
        font-size: 1rem;
    }

    .Skills__list li {
        position: relative;
        padding-left: 1.5em;
        font-size: 14px;
        margin-bottom: 1.2em;
        color: #333
    }

    .Skills__list li::before {
        content: "✔";
        position: absolute;
        left: 0;
        color: #4caf50;
        font-weight: bold;
    }


    .Flow {
        padding: 60px 20px 60px;
    }

    .Flow__title {
        text-align: center;
        font-size: 1rem;
        margin-bottom: 0.8em;
    }

    .Flow__list {
        list-style: none;
        padding-left: 0;
        counter-reset: step;
        max-width: 700px;
        margin: 0 auto;
    }

    .Flow__list li {
        font-size: 14px;
        margin-bottom: 1.2em;
        padding-left: 5.0em;
        position: relative;
    }

    .Flow__list li::before {
        counter-increment: step;
        content: "Step " counter(step) ": ";
        font-weight: bold;
        color: #996666;
        position: absolute;
        left: 0;
    }

    /* フッター */
    .copy {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        font-size: 12px;
        background-image:
            radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 40%),
            radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 50%),
            radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 45%),
            radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 35%),
            radial-gradient(circle at 60% 50%, rgba(85, 140, 120, 1), rgba(185, 236, 225, 0) 55%),
            radial-gradient(circle at 25% 55%, rgba(85, 140, 120, 0.9), rgba(185, 236, 225, 0) 60%),
            radial-gradient(circle at 75% 60%, rgba(85, 140, 120, 1), rgba(185, 236, 225, 0) 50%),
            radial-gradient(circle at 50% 20%, rgba(185, 236, 225, 0.75), rgba(185, 236, 225, 0) 70%),
            radial-gradient(circle at 50% 80%, rgba(185, 236, 225, 0.7), rgba(185, 236, 225, 0) 70%);
        color: #333;
        height: 42px;
        padding-right: 70px;
    }


    #back-to-top-home {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: #996666;
        color: #fff;
        font-size: 16px;
        text-align: center;
        line-height: 60px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    #back-to-top-home.show {
        display: block;
        /* スクロール後に表示 */
        opacity: 0.7;
    }

    #back-to-top-home:hover {
        opacity: 0.8;
    }


    .header__list.active {
        display: flex;
    }

    .section__title,
    .section__subtitle {
        text-align: center;
    }

    /* フェードインアニメーションの定義 */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

    /* フェードイン効果を適用するクラス */
    .fade-in {
        opacity: 0;

    }

    .fade-in-animate {
        animation: fadeIn 1.5s ease-in forwards;
    }

    @keyframes flash {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }
    }

    .flash-on-load {
        animation: flash 1s ease-in-out 3;
    }

    html {
        scroll-behavior: smooth;
    }
}