@charset "UTF-8";

html,
body {
    font-size: 62.5%;
    scroll-behavior: smooth;

    width: 100%;
    overflow-x: clip;
    position: relative;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    background: linear-gradient(180deg, #e9fbfd 0%, var(--color-bg) 42%, #fff 100%);
    color: #333;
}

:root {
    --color-main: #1CBACD;
    --color-accent: #005BAC;
    --color-text: #333;
    --color-sub: #CD2F1C;
    --color-bg: #f6fbfc;
    --color-surface: #fff;
    --color-border: #d9eef2;
    --shadow-card: 0 18px 45px rgba(0, 91, 172, 0.08);

    --font-size-xl: clamp(2.6rem, 3.4vw, 4rem);
    --font-size-lg: clamp(2.4rem, 3vw, 3.2rem);
    --font-size-md: clamp(1.8rem, 2vw, 2.4rem);
    --font-size-sm: clamp(1.2rem, 1.4vw, 1.6rem);
}

h1 {
    font-size: var(--font-size-md);
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
}

h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h3 {
    font-size: var(--font-size-lg);
}

h4 {
    font-size: var(--font-size-md);
    color: var(--color-accent);
}

h5 {
    font-size: clamp(1.5rem, 1.5vw, 2rem);
}

h6 {
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.9;

}

p {
    color: var(--color-text);
    font-size: var(--font-size-sm);
    line-height: 1.9;
}

ul {
    list-style: none;
}

a {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-sub);
    outline-offset: 4px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .04em;
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease;
}

.button.primary {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 91, 172, .22);
}

.button.secondary {
    background-color: #fff;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400&display=swap');

@keyframes arrowmove {
    0% {
        bottom: 1%;
    }

    50% {
        bottom: 5%;
    }

    00% {
        bottom: 1%;
    }
}

.lightbox-modal {
    position: fixed;
    /* 画面に対して固定配置し、宙に浮かせる */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* 画面いっぱいの高さ */
    background-color: rgba(0, 0, 0, 0.8);
    /* 半透明の黒背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* どの要素よりも一番手前に表示する */

    /* フェードインアニメーションのための非表示設定 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 2. JSで「is-active」クラスが付与されたら表示する */
.lightbox-modal.is-active {
    opacity: 1;
    visibility: visible;
}

/* 3. モーダル内の拡大画像のデザイン */
.lightbox-modal .lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    /* 画面高さを超えないように制限 */
    border-radius: 10px;
    /* 角を少し丸める */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    /* 影をつけて立体感を出す */
}

/* 4. 閉じるボタン（×）のデザイン */
.lightbox-modal .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease;
}

/* 閉じるボタンにホバーした時のアクション（少し大きくする） */
.lightbox-modal .lightbox-close:hover {
    transform: scale(1.1);
}




header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-main);
    color: #fff;
    padding: 1rem 2rem;
    text-align: center;
    z-index: 50;

    .header_nav {
        ul {
            display: flex;
            gap: 2rem;

            li {
                a {
                    color: #fff;
                    transition: color 0.3s ease;

                    &:hover {
                        color: var(--color-accent);
                    }
                }
            }
        }
    }

    .page_up {
        position: fixed;
        bottom: 10px;
        right: 10px;

        a {
            font-size: 2.4rem;
        }
    }
}

footer {
    text-align: center;
    padding: 20px 0;
}

.section_title {
    text-align: center;
    margin-bottom: 40px;
}

.top_page {
    #top {
        width: 100%;
        height: 100vh;
        position: relative;
        overflow: hidden;

        .hero_copy {
            position: absolute;
            top: 50%;
            left: 10%;
            transform: translateY(-50%);
            max-width: 760px;
        }

        .hero_label {
            display: inline-flex;
            margin-bottom: 18px;
            padding: 6px 16px;
            border: 1px solid var(--color-border);
            border-radius: 999px;
            background-color: rgba(255, 255, 255, .7);
            color: var(--color-accent);
            font-weight: 700;
            letter-spacing: .08em;
        }

        .hero_lead {
            max-width: 650px;
            margin-top: 24px;
            font-size: clamp(1.5rem, 1.7vw, 2rem);
            font-weight: 500;
        }

        .hero_actions {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-top: 32px;
        }

        .site_title {
            position: static;
            transform: none;
            font-size: clamp(4.6rem, 7.6vw, 8rem);
            font-family: "Limelight", sans-serif;
            font-weight: 400;
            color: var(--color-text);

        }

        .scroll_down {
            position: absolute;
            bottom: 1%;
            right: 5%;
            animation: arrowmove 1s ease-in-out infinite;

            a {
                position: absolute;
                left: -24px;
                bottom: 17px;
                color: #000;
                font-size: 14px;
                font-family: 'Josefin Sans', sans-serif;
                letter-spacing: .2em;
                writing-mode: vertical-rl;
                text-decoration: none;
                text-transform: uppercase;
            }

            &:before {
                content: "";
                position: absolute;
                bottom: 5px;
                right: -6px;
                width: 2px;
                height: 20px;
                background: #000;
                transform: skewX(-31deg);
            }

            &:after {
                content: "";
                position: absolute;
                bottom: 5px;
                right: 0;
                width: 2px;
                height: 85px;
                background: #000;
            }
        }
    }

    #works {
        scroll-margin-top: 120px;
        margin: 80px 0;

        .works_lead {
            width: min(85%, 880px);
            margin: -10px auto 56px;
            text-align: center;
        }

        .work_web,
        .work_banner {
            width: 85%;
            margin: 0 auto;

            h3 {
                margin-bottom: 40px;
            }
        }

        .works_box {
            display: flex;
            align-items: stretch;
            flex-wrap: nowrap;
            gap: 40px;
            margin-bottom: 80px;

            a {
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                gap: 15px;
                padding: clamp(28px, 4vw, 54px);
            }

            .works_box_item {
                width: 48%;
                background-color: var(--color-surface);
                border: 1px solid var(--color-border);
                border-radius: 30px;
                box-shadow: 0 10px 30px rgba(0, 91, 172, .05);
                transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;

                &:hover {
                    transform: translateY(-8px);
                    border-color: rgba(0, 91, 172, .35);
                    box-shadow: var(--shadow-card);
                }

                h4 {
                    color: var(--color-text);
                }

                .works_box_img {
                    aspect-ratio: 16 / 9;
                    margin-bottom: 10px;

                    img {
                        max-width: 100%;
                        height: 100%;
                        vertical-align: bottom;
                        object-fit: cover;
                        border-radius: 18px;
                    }
                }
            }

            .works_tag {
                display: flex;
                align-items: flex-start;
                justify-content: left;
                flex-wrap: wrap;
                gap: 20px;
                margin-top: auto;

                .tag {
                    padding: 4px 12px;
                    border-radius: 20px;
                    background-color: var(--color-accent);
                    color: #fff;
                    font-size: var(--font-size-sm);
                }

                .tag.highlight {
                    background-color: var(--color-sub);
                }
            }

            .work_summary {
                min-height: 5.7em;
            }

            .work_meta {
                display: grid;
                gap: 8px;
                padding-top: 14px;
                border-top: 1px solid var(--color-border);

                div {
                    display: grid;
                    grid-template-columns: 4.5em 1fr;
                    gap: 12px;
                    font-size: var(--font-size-sm);
                }

                dt {
                    color: var(--color-accent);
                    font-weight: 700;
                }
            }

            .work_link_text {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                margin-top: auto;
                color: var(--color-accent);
                font-size: var(--font-size-sm);
                font-weight: 700;
            }

            .work_link_text::after {
                content: "→";
                transition: transform .3s ease;
            }

            a:hover .work_link_text::after {
                transform: translateX(4px);
            }
        }
    }


    #about {
        scroll-margin-top: 120px;
        margin-bottom: 80px;

        .about_us {
            width: 85%;
            margin: 0 auto;
            display: flex;
            align-items: stretch;
            justify-content: space-between;
            gap: 32px;

            .top_profile {
                width: 50%;

                h3 {
                    margin-bottom: 20px;
                }
            }

            .profile_skills {
                width: 45%;
                display: flex;
                flex-direction: column;
                gap: 40px;

                .skills_rating,
                .skills_license {
                    display: flex;
                    flex-direction: column;
                    gap: 15px;

                    .skills_note {
                        font-size: clamp(1.2rem, 1.3vw, 1.5rem);
                    }

                    ul {
                        display: flex;
                        align-items: center;
                        justify-content: left;
                        flex-wrap: wrap;
                        gap: 10px;

                        li {
                            background-color: var(--color-main);
                            border-radius: 20px;
                            padding: 5px 20px;
                            color: #fff;
                            font-size: var(--font-size-sm);
                        }
                    }
                }
            }
        }
    }

    #contact {
        scroll-margin-top: 120px;
        margin: 80px 0 0;

        .mail {
            width: 85%;
            margin: 0 auto;
            text-align: center;

            .contact_lead {
                margin-bottom: 24px;
            }

            a {
                display: inline-flex;
                align-items: center;
                gap: 10px;
                padding: 14px 28px;
                background-color: white;
                border: 1px solid var(--color-border);
                border-radius: 999px;
                color: var(--color-accent);
                font-weight: 700;
                box-shadow: 0 12px 30px rgba(0, 91, 172, .08);
            }
        }
    }
}

.work {
    #top {
        width: 100%;
        height: 100vh;
        position: relative;
        margin-bottom: 160px;

        .work_top {
            width: 90%;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 40px;

            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);


            .work_info {
                width: 50%;
                display: flex;
                flex-direction: column;
                gap: 20px;
            }

            .work_add {
                display: flex;
                flex-direction: column;
                gap: 10px;

                .work_add_pass_user,
                .work_add_pass_pass {
                    display: flex;
                    justify-content: left;
                    gap: 10px;

                    font-size: var(--font-size-sm);
                }
            }

            .work_add_date {
                display: flex;
                flex-direction: column;
                gap: 10px;

                .work_add_date_list {
                    font-size: var(--font-size-sm);
                }
            }

            .work_img {
                width: 50%;

                img {
                    max-width: 100%;
                    height: auto;
                    border-radius: 20px;
                }
            }
        }

        .work_menu {
            position: absolute;
            bottom: 0px;
            left: 50%;
            transform: translateX(-50%);

            display: flex;
            align-items: center;
            gap: 50px;
            text-align: center;
        }
    }


    section {
        scroll-margin-top: 120px;
        width: 80%;
        margin: 0 auto 160px;
    }

    .work_contents_title {
        text-align: center;
        margin-bottom: 80px;
    }

    #concept {
        h4 {
            margin-bottom: 20px;
        }



        .work_concept_inside {
            margin-bottom: 80px;
        }

        .work_concept_add {
            margin-bottom: 80px;



            .work_concept_add_text {
                width: 100%;
                display: flex;
                flex-direction: column;
                gap: 20px;

                p {
                    font-size: var(--font-size-sm);
                }
            }
        }
    }

    .table-wrapper {
        display: flex;
        gap: 40px;
    }

    .custom-table caption.table-title {
        caption-side: top;
        text-align: left;
        font-size: var(--font-size-sm);
        /* 少し大きくしたい場合は --font-size-md に */
        font-weight: bold;
        color: var(--color-accent);
        /* サイトのアクセントカラー（濃い青）を採用 */
        margin-bottom: 15px;
        padding-left: 12px;
        border-left: 5px solid var(--color-main);
        /* サイトのメインカラー（シアン）を採用 */
        line-height: 1.4;
    }

    /* 注釈テキストの設定（もし使用する場合） */
    .table-note {
        font-size: var(--font-size-sm);
        color: #666;
        margin-bottom: 15px;
    }

    /* 表の外観デザイン */
    .custom-table {
        width: 100%;
        font-size: var(--font-size-sm);
        border-collapse: collapse;
        /* ボーダーを重ねる */
        margin-bottom: 40px;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
        /* ふんわりとした影で浮かせる */
        /* 角丸にするための設定（枠線が少し外れるのを防ぐため collapse ではなく separate を使う手もありますが、今回はシンプルな手法で） */
        border-radius: 8px;
        border-style: hidden;
        /* 外枠の直線を隠して角丸を効かせる */
        box-shadow: 0 0 0 1px #eaf1f2, 0 4px 10px rgba(0, 0, 0, 0.04);
        /* 擬似的な外枠と影 */
    }

    /* セルの余白と横線 */
    .custom-table th,
    .custom-table td {
        padding: 15px;
        border-bottom: 1px solid #eaf1f2;
        /* サイト背景色と同じ色で控えめな区切り線 */
        text-align: center;
    }

    /* 縦線（点線にして圧迫感を軽減。不要なら削除してください） */
    .custom-table th:not(:last-child),
    .custom-table td:not(:last-child) {
        border-right: 1px dashed #eaf1f2;
    }

    /* ヘッダーのデザイン */
    .custom-table th {
        background-color: var(--color-accent);
        /* メインカラー（シアン）を採用 */
        color: #fff;
        /* 文字は白でくっきりと */
        font-weight: bold;
        white-space: nowrap;
    }

    /* 角丸の適用（左上と右上） */
    .custom-table th:first-child {
        border-top-left-radius: 8px;
    }

    .custom-table th:last-child {
        border-top-right-radius: 8px;
    }

    /* 行の背景色を交互に変える（視認性向上） */
    .custom-table tbody tr:nth-child(even) {
        background-color: #fbfdfd;
        /* ほんのり青みがかった白 */
    }

    /* 最後の行の下線を消す */
    .custom-table tbody tr:last-child td {
        border-bottom: none;
        /* 角丸の適用（左下と右下） */
    }

    .custom-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 8px;
    }

    .custom-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 8px;
    }

    /* ホバー（マウスカーソルを乗せた時）の演出 */
    .custom-table tbody tr:hover {
        background-color: rgba(28, 186, 205, 0.05);
        /* メインカラーをごく薄く敷く */
        transition: background-color 0.3s ease;
    }

    /* テキストの配置調整用クラス（すでにHTMLに記載されているもの） */
    .text-left {
        text-align: left !important;
    }

    .text-right {
        text-align: right !important;
    }

    .work_section {
        margin-bottom: 80px;

        .contents_tag {
            width: 100%;
            padding: 5px 20px;
            background-color: var(--color-accent);
            color: #fff;
            margin-bottom: 20px;
        }

        .work_flex_box {
            position: relative;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            margin-bottom: 80px;
        }

        .work_text_area {
            width: 50%;
            display: flex;
            flex-direction: column;
            gap: 20px;

            ul {
                display: flex;
                flex-direction: column;
                gap: 10px;

                li h5 {
                    margin-bottom: 10px;
                }
            }
        }

        .work_img_area {
            width: 40%;

            img {
                max-width: 100%;
                height: auto;
                border-radius: 20px;
                object-fit: cover;
                margin-bottom: 10px;
            }

            p {
                text-align: center;
                font-size: var(--font-size-sm);
                color: #666;
            }
        }

        .work_img_area.scroll_area {
            position: absolute;
            top: 0;
            right: 0;
            width: 45%;
            height: 100%;
            overflow-y: auto;
        }
    }

    #design {
        .work_design_img {
            display: flex;
            gap: 40px;
            margin-bottom: 80px;

            img {
                width: 50%;
            }
        }

        .work_design_img_banner {
            display: grid;
            /* 最小幅280pxで、画面幅に合わせて自動で列数を調整します */
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px;
            margin-bottom: 80px;

            img {
                width: 100%;
                height: 250px;
                margin-bottom: 10px;
                object-fit: contain;
            }
        }

        .work_img_area {
            background-color: #fff;
            text-align: center;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
        }
    }

    #contents {
        .work_concept_inside {
            margin-bottom: 40px;

            p {
                text-align: center;
            }
        }

        .work_contents_img {
            display: flex;
            gap: 40px;
            margin-bottom: 80px;

            .work_contents_add {
                width: 50%;

                h4 {
                    margin-bottom: 20px;
                }

                ul {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 15px;
                }

                li {
                    padding: 5px 15px;
                    font-size: var(--font-size-sm);
                    background-color: #fff;

                }
            }

            .contents_add_img {
                width: 50%;

                img {
                    width: 100%;
                    height: auto;
                    border-radius: 20px;
                    object-fit: cover
                }
            }
        }
    }
}


/* =========================================================
   Responsive: max-width 1024px (タブレット・小さめのPC向け)
========================================================= */
@media screen and (max-width: 1024px) {

    /* 要素間の余白を調整し、画面幅を有効活用します */
    .section_title {
        margin-bottom: 30px;
    }

    .delete_sp {
        display: none;
    }

    .top_page {
        #works {
            .works_box {
                gap: 20px;

                a {
                    padding: 30px;
                    /* 余白を少し絞ってカード内を広く見せる */
                }
            }
        }

        #about {
            .about_us {
                width: 95%;
            }
        }
    }

    .work {

        /* 全体の幅を少し絞り、画面端にゆとりを持たせます */
        section {
            width: 95%;
            margin: 0 auto;
        }
    }
}

/* =========================================================
   Responsive: max-width 768px (スマートフォン向け)
========================================================= */
@media screen and (max-width: 768px) {

    /* ヘッダー：スマホではシンプルに中央寄せ、タップしやすく */
    header {
        flex-direction: column;
        gap: 15px;
        padding: 1.5rem 1rem;

        .header_nav ul {
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.5rem;
        }
    }

    .top_page {
        #top {
            height: 86vh;

            .hero_copy {
                left: 5%;
                right: 5%;
                max-width: none;
            }

            .site_title {
                font-size: clamp(3.2rem, 11vw, 4.8rem);
                /* スマホ画面に綺麗に収まるサイズ感 */
            }

            .hero_actions {
                gap: 12px;
            }
        }

        #works {
            .works_box {
                flex-direction: column;
                /* 1カラムにして画像を大きく、タップ領域を最大化 */
                gap: 30px;

                .works_box_item {
                    width: 100%;
                }
            }
        }

        #about {
            .about_us {
                flex-direction: column;
                /* プロフィールとスキルを縦並びに */
                gap: 50px;

                .top_profile,
                .profile_strengths,
                .profile_skills {
                    width: 100%;
                }
            }
        }
    }

    .work {
        #top {
            height: 100vh;
            margin-bottom: 80px;

            .work_top {
                width: 90%;
                flex-direction: column;
                gap: 20px;

                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);


                .work_info {
                    width: 100%;
                }

                .work_img {
                    width: 100%;
                }
            }

            .work_menu {
                gap: 20px;

                a {
                    padding: 8px 20px;
                    background-color: #fff;
                    border-radius: 20px;
                }
            }
        }


        section {
            width: 90%;
            margin: 0 auto 80px;
        }

        .work_contents_title {
            margin-bottom: 40px;
        }

        #concept {

            .work_concept_inside {
                margin-bottom: 40px;
            }

            .work_concept_add {
                margin-bottom: 40px;
            }
        }

        .table-wrapper {
            flex-direction: column;
            gap: 0px;
        }

        .work_section {
            margin-bottom: 40px;

            .work_flex_box {
                flex-direction: column;
                margin-bottom: 40px;
            }

            .work_text_area {
                width: 100%;
            }

            .work_img_area {
                width: 100%;
            }

            .work_img_area.scroll_area {
                position: static;
                width: 100%;
                height: 250px;
                overflow-y: auto;
            }
        }

        #contents {

            .work_contents_img {
                flex-direction: column;
                gap: 20px;
                margin-bottom: 40px;

                .work_contents_add {
                    width: 100%;

                    ul {
                        gap: 10px;
                    }
                }

                .contents_add_img {
                    width: 100%;
                }
            }
        }
    }
}