/* ========= Base ========= */
:root {
    --bg: #fff9fd;
    --panel: #fff;
    --ink: #2f2c3a;
    --muted: #6b6a77;
    --brand: #ff86b6;
    --brand2: #a6d8ff;
    --edge: rgba(47, 44, 58, .1);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a:hover {
    text-decoration: underline;
}

.nav-text:hover {
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

/* ========= Header ========= */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--edge)
}

.header-text {
    padding: 10px 0
}

.header-text h1 {
    font-size: 28px;
    margin: 6px 0
}

/* ========= Main / Hero ========= */
main {
    padding-bottom: 56px
}

.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-shadow {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    border-radius: 8px;
}


/* ========= Sections ========= */
section {
    margin: 28px 0;
    padding: 3rem 6rem;
    border: 1px solid var(--edge);
    border-radius: 14px;
    background: var(--panel)
}

@media (max-width:780px) {
    section {
        padding: 3rem 2rem;
    }
}

section h2 {
    margin: 0 0 16px;
    font-size: 22px
}

section p {
    color: var(--muted)
}

.h2-sub-text {
    margin-bottom: 3rem;
    overflow-wrap: break-word;
}



/* ========= Spec (dl) ========= */
dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem 1rem;
    margin: 0 0 3rem;
}

dt {
    font-weight: 700;
    color: var(--muted)
}

dd {
    margin: 0;
    color: var(--muted);
}

/* ========= Back link / buttons ========= */
.actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--edge);
    background: var(--panel);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
    font-weight: 700
}

.btn.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    border: none
}

.btn:hover {
    filter: saturate(1.03)
}

/* ========= Gallery (More works) ========= */
.gallery {
    margin-top: 14px
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.card {
    border: 1px solid var(--edge);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08)
}

.card .thumb {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #ffe3ef, #e8f5ff);
    display: flex;
    align-items: center;
    justify-content: center
}

.card .body {
    padding: 12px
}

.card h3 {
    margin: 0 0 6px;
    font-size: 16px
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

/* ========= Responsive ========= */
@media (max-width:780px) {
    .container {
        padding: 18px
    }

    .header-text h1 {
        font-size: 22px
    }

    dl {
        grid-template-columns: 80px 1fr
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:520px) {
    .gallery-grid {
        grid-template-columns: 1fr
    }
}

.work-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 2rem 0;
}

.work-images .work-img {
    width: min(100%, 560px);
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    background: #fff;
}

@media (min-width: 768px) {
    .work-images {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }

    .work-images .work-img {
        width: auto;
        height: 320px;
        object-fit: contain;
    }
}

@media (min-width: 1200px) {
    .work-images .work-img {
        height: 360px;
    }
}

@media (max-width:780px) {

    dl {
        grid-template-columns: 1fr;
        row-gap: 0.5rem;
    }

    dd {
        grid-column: 1 / -1;
        padding-bottom: .5rem;
    }

    dt {
        margin-top: 0.75rem;
    }

    dl>dt:first-of-type {
        margin-top: 0;
    }
}