/* =========================
   Base
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        Meiryo,
        sans-serif;

    color: #222;
    background: #ffffff;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   Header
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.global-nav {
    display: flex;
    gap: 28px;
}

.global-nav a {
    font-size: 14px;
    color: #555;
}

.global-nav a:hover {
    color: #000;
}


/* =========================
   Hero
========================= */

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            #f5f7fa 0%,
            #e8edf2 100%
        );
}

.hero-inner {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 80px 24px;
}

.hero-label {
    margin-bottom: 20px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;

    color: #65717c;
}

.hero h1 {
    margin: 0 0 30px;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.hero-description {
    max-width: 680px;

    margin-bottom: 36px;

    font-size: 18px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}


/* =========================
   Button
========================= */

.button {
    display: inline-block;

    padding: 13px 28px;

    border-radius: 4px;

    font-size: 14px;
    font-weight: 600;
}

.button.primary {
    color: #fff;
    background: #222;
}

.button.secondary {
    border: 1px solid #222;
    background: #fff;
}

.button:hover {
    opacity: 0.8;
}


/* =========================
   Section
========================= */

.section {
    padding: 100px 24px;
}

.section-alt {
    background: #f7f8fa;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 700;

    color: #7c8792;

    letter-spacing: 0.18em;
}

.section h2,
.personal-link h2 {
    margin-top: 0;
    margin-bottom: 30px;

    font-size: 36px;
}

.section-text {
    max-width: 780px;
    font-size: 17px;
}


/* =========================
   Skills
========================= */

.skill-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.skill-card {
    padding: 30px;

    background: #fff;

    border: 1px solid #e4e7ea;
    border-radius: 8px;
}

.skill-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}


/* =========================
   Portfolio
========================= */

.portfolio-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.portfolio-card {
    min-height: 100%;

    background: #fff;

    border: 1px solid #e4e7ea;
    border-radius: 8px;

    overflow: hidden;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.portfolio-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-card-body {
    padding: 28px;
}

.portfolio-category {
    font-size: 12px;
    font-weight: 700;

    color: #7a8793;

    letter-spacing: 0.08em;
}

.portfolio-card h3 {
    margin: 10px 0 18px;

    font-size: 22px;
}

.portfolio-card ul {
    padding-left: 20px;
}


/* =========================
   Career
========================= */

.career-item {
    max-width: 800px;

    padding: 26px 0;

    border-bottom: 1px solid #ddd;
}

.career-item h3 {
    margin-top: 0;
}


/* =========================
   Personal
========================= */

.personal-link {
    padding: 80px 24px;

    background: #222;
    color: #fff;
}

.text-link {
    display: inline-block;

    margin-top: 14px;

    font-weight: 600;

    border-bottom: 1px solid #fff;
}


/* =========================
   Footer
========================= */

.site-footer {
    padding: 32px 20px;

    text-align: center;

    font-size: 13px;
    color: #777;

    background: #111;
}


/* =========================
   Mobile
========================= */

@media (max-width: 768px) {

    .header-inner {
        display: block;
    }

    .global-nav {
        margin-top: 12px;
        gap: 14px;

        flex-wrap: wrap;
    }

    .hero {
        min-height: 550px;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 20px;
    }

    .section h2,
    .personal-link h2 {
        font-size: 30px;
    }
}

/* =========================
   Project Detail
========================= */

.project-hero {
    padding: 110px 24px 90px;

    background:
        linear-gradient(
            135deg,
            #f5f7fa 0%,
            #e8edf2 100%
        );
}

.project-hero h1 {
    margin: 0 0 24px;

    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.3;
}

.project-lead {
    max-width: 760px;

    font-size: 18px;
    color: #555;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;
}

.project-tags span {
    padding: 7px 14px;

    font-size: 12px;

    background: #fff;

    border:
        1px solid #dfe3e7;

    border-radius: 20px;
}


/* =========================
   Project Summary
========================= */

.project-summary {
    max-width: 820px;

    font-size: 17px;
}


/* =========================
   Project Info Cards
========================= */

.project-content-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.project-info-card {
    padding: 28px;

    background: #fff;

    border:
        1px solid #e4e7ea;

    border-radius: 8px;
}

.project-info-card h3 {
    margin-top: 0;
}


/* =========================
   Application Flow
========================= */

.app-flow {
    display: flex;

    align-items: stretch;

    gap: 18px;
}

.app-box {
    flex: 1;

    padding: 28px;

    background: #fff;

    border:
        1px solid #e4e7ea;

    border-radius: 8px;
}

.app-number {
    font-size: 12px;
    font-weight: 700;

    color: #84909a;
}

.app-box h3 {
    margin:
        10px 0 14px;
}

.flow-arrow {
    display: flex;

    align-items: center;

    font-size: 30px;

    color: #aaa;
}


/* =========================
   Feature List
========================= */

.feature-list {
    max-width: 900px;
}

.feature-item {
    padding: 26px 0;

    border-bottom:
        1px solid #dfe3e7;
}

.feature-item h3 {
    margin:
        0 0 10px;
}


/* =========================
   Code Feature
========================= */

.code-feature {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.code-feature > div {
    padding: 28px;

    border:
        1px solid #e4e7ea;

    border-radius: 8px;
}


/* =========================
   Screenshot
========================= */

.screenshot-placeholder {
    min-height: 360px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;

    background: #f5f7fa;

    border:
        1px dashed #c7cdd3;

    border-radius: 8px;

    color: #7a8793;
}


/* =========================
   Documents
========================= */

.document-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.document-card {
    display: block;

    padding: 28px;

    background: #fff;

    border:
        1px solid #e4e7ea;

    border-radius: 8px;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.document-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.08);
}

.document-card span {
    font-size: 12px;

    color: #7a8793;
}

.document-card h3 {
    margin:
        8px 0;
}


/* =========================
   Project Back
========================= */

.project-back {
    padding: 60px 24px;
}


/* =========================
   Project Mobile
========================= */

@media (max-width: 768px) {

    .project-content-grid,
    .code-feature,
    .document-grid {
        grid-template-columns:
            1fr;
    }

    .app-flow {
        flex-direction:
            column;
    }

    .flow-arrow {
        justify-content:
            center;

        transform:
            rotate(90deg);
    }
}

 /* =========================
   Project Media
========================= */

.demo-video-block {
    margin-top: 45px;
    margin-bottom: 70px;
}

.media-heading {
    margin-bottom: 18px;
}

.media-heading h3 {
    margin: 4px 0 0;
    font-size: 24px;
}

.media-number,
.screenshot-number {
    display: block;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.12em;

    color: #7a8793;
}

.demo-video-block {
    margin-top: 45px;
    margin-bottom: 70px;
}

 .project-video {
    display: block;
    width: 560px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.media-caption {
    max-width: 560px;

    margin-top: 12px;

    font-size: 14px;
    color: #68727c;
}



/* =========================
   Screenshot Grid
========================= */

.screenshot-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.screenshot-card {
    margin: 0;

    overflow: hidden;

    background: #fff;

    border:
        1px solid #e4e7ea;

    border-radius: 10px;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.screenshot-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.08);
}

.screenshot-image {
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #f4f6f8;

    border-bottom:
        1px solid #e4e7ea;
}

.screenshot-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.screenshot-card figcaption {
    padding: 24px;
}

.screenshot-card h3 {
    margin:
        8px 0 10px;

    font-size: 19px;
}

.screenshot-card p {
    margin: 0;

    font-size: 14px;
    color: #555;
}


/* =========================
   Project Media Mobile
========================= */

@media (max-width: 768px) {

    .screenshot-grid {
        grid-template-columns:
            1fr;
    }

}

/* 動画サイズ強制調整 */
.demo-video-block {
    width: 100%;
    max-width: 560px;
    overflow: hidden;
}

 