@charset "utf-8";
/* ============================================================
   KOYO — Sub-page Design System
   Overrides legacy style.css to match the top-page world:
   white + deep navy + Oswald + Noto Sans JP + sun gold accent
============================================================ */

:root {
    --navy: #002964;
    --navy-deep: #001738;
    --navy-soft: #0c3b80;
    --blue: #0456b7;
    --sun: #feb32f;
    --gold: #b88a2c;
    --white: #fff;
    --paper: #f4f7fb;
    --paper-mid: #e6ecf4;
    --rule: #d6dde7;
    --ink: #0a0e1a;
}

/* legacy tokens → re-point to new palette */
:root,
html, body {
    --primary-color: var(--navy);
    --primary-dark: var(--navy-deep);
    --primary-light: var(--navy-soft);
    --secondary-color: var(--navy-deep);
    --accent-color: var(--sun);
    --text-color: var(--ink);
    --text-light: #4a5266;
    --bg-gray: var(--paper);
    --bg-light-gray: #f7f9fc;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--white);
    letter-spacing: 0.06em;
}

::selection { background: var(--navy); color: var(--white); }

/* English label class used across legacy markup */
.enfont {
    font-family: "Oswald", "Arial Narrow", sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
}

/* ============================================================
   Header — match top page (single row, fixed 64px)
============================================================ */
#header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: 64px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
    padding: 0;
    transition: height 0.3s ease, background 0.3s ease;
}
#header.fixed { height: 56px; background: rgba(255, 255, 255, 0.98); }

#header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 100%;
    min-height: 0 !important;
    padding: 0 28px !important;
    width: 100% !important;
    max-width: none !important;
}

/* logo block */
#header .logo {
    flex: 0 0 auto;
    line-height: 1;
}
#header .logo a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--navy);
}
#header .logo img.logo-colored,
#header .logo img.logo-white {
    display: block !important;
    height: 26px;
    width: auto !important;
    flex: 0 0 auto;
}
#header .logo-white { display: none !important; }
#header .logo .logo-company-name {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 0.18em;
    line-height: 1;
    padding-left: 14px;
    border-left: 1px solid rgba(0, 41, 100, 0.22);
    white-space: nowrap;
    margin: 0;
}

/* nav — center, Oswald uppercase */
#header .g-nav { flex: 1 1 auto; }
#header .g-nav ul {
    display: flex !important;
    justify-content: center !important;
    gap: 32px !important;
    list-style: none;
    margin: 0;
    padding: 0;
}
#header .g-nav li {
    margin: 0 !important;
    padding: 0 !important;
}
#header .g-nav a {
    position: relative;
    display: inline-block;
    margin: 0 !important;
    color: var(--navy) !important;
    text-decoration: none;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 0 !important;
    line-height: 1;
}
#header .g-nav a span { position: relative; top: 0 !important; }
#header .g-nav a::before,
#header .g-nav a::after { display: none !important; }
#header .g-nav a span::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}
#header .g-nav a:hover span::after { transform: scaleX(1); transform-origin: left center; }
#header .g-nav .current a { color: var(--gold) !important; }
#header .g-nav .current a span::after { background: var(--gold); transform: scaleX(1); }

/* header Instagram icon */
#header .header-insta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    margin-left: 12px;
    transition: transform 0.3s ease;
}
#header .header-insta svg { width: 100%; height: 100%; display: block; }
#header .header-insta:hover { transform: rotate(-6deg) scale(1.08); }

/* mobile hamburger — override legacy absolute/transform positioning */
#header .nav-btn-area {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 auto;
    margin-left: 8px;
}
#header .nav-btn {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
}
#header .nav-btn .icon-animation {
    position: relative;
    width: 24px;
    height: 18px;
    margin: 9px auto;
}
#header .nav-btn .icon-animation span {
    background: var(--navy) !important;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    transition: top 0.3s, transform 0.3s, opacity 0.3s;
}
#header .nav-btn .icon-animation span.top { top: 0; }
#header .nav-btn .icon-animation span.middle { top: 8px; }
#header .nav-btn .icon-animation span.bottom { top: 16px; }

/* ============================================================
   Page header — hero band (navy slab with image)
============================================================ */
.page-header {
    position: relative;
    min-height: 52vh;
    padding: 110px 5vw 60px;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: brightness(0.45) saturate(0.85) contrast(1.05);
}
.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 23, 56, 0.7), rgba(0, 23, 56, 0.5) 50%, rgba(0, 23, 56, 0.85));
    z-index: 1;
    pointer-events: none;
}
.page-header::before {
    /* faint sun pattern */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='%23feb32f' opacity='0.10'><circle cx='40' cy='40' r='5'/><path d='M40 16 L42 31 L57 24 L46 36 L62 40 L46 44 L57 56 L42 49 L40 64 L38 49 L23 56 L34 44 L18 40 L34 36 L23 24 L38 31 Z'/></g></svg>");
    background-size: 90px 90px;
}
.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}
.page-title {
    margin: 0;
    line-height: 0.95;
}
.page-title .enfont {
    display: block;
    font-family: "Oswald", sans-serif !important;
    font-weight: 600 !important;
    font-style: normal !important;
    font-size: clamp(56px, 8.5vw, 144px) !important;
    letter-spacing: 0 !important;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.page-title .jp {
    display: block;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 1.5vw, 1.85rem);
    letter-spacing: 0.32em;
    color: var(--sun);
}
.page-lead {
    margin: 30px 0 0;
    font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
    font-size: clamp(1.5rem, 1.5vw, 1.95rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.08em;
    max-width: 720px;
}

/* ============================================================
   Breadcrumb
============================================================ */
.breadcrumb {
    background: var(--paper);
    padding: 14px 5vw;
    border-bottom: 1px solid var(--rule);
}
.breadcrumb .inner { max-width: 1280px; margin: 0 auto; }
.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    color: var(--navy);
    text-transform: uppercase;
    opacity: 0.7;
}
.breadcrumb li::after {
    content: "/";
    margin-left: 8px;
    opacity: 0.4;
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}
.breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   Buttons — primary
============================================================ */
.btn-primary {
    display: inline-flex !important;
    align-items: center;
    gap: 14px;
    padding: 18px 36px !important;
    font-family: "Oswald", sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.24em !important;
    text-transform: uppercase;
    color: var(--white) !important;
    background: var(--navy) !important;
    border: 1.5px solid var(--navy) !important;
    border-radius: 0 !important;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, color 0.4s ease, padding 0.4s ease, gap 0.4s ease;
    line-height: 1;
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--sun);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
    z-index: -1;
}
.btn-primary:hover {
    color: var(--navy) !important;
    border-color: var(--sun) !important;
    padding: 18px 48px !important;
    gap: 22px;
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary .arrow { font-style: normal !important; font-family: inherit !important; }
.btn-primary .arrow::after {
    content: " →";
    margin-left: 6px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.btn-primary:hover .arrow::after { transform: translateX(4px); }

.btn-white {
    background: var(--white) !important;
    color: var(--navy) !important;
    border-color: var(--white) !important;
}

/* ============================================================
   Section titles (overrides for legacy)
============================================================ */
.section-title,
.section-title-center {
    color: var(--navy);
}
.section-title .enfont,
.section-title-center .enfont {
    font-family: "Oswald", sans-serif !important;
    font-weight: 600 !important;
    font-style: normal !important;
    font-size: clamp(38px, 5.5vw, 88px) !important;
    letter-spacing: 0.02em !important;
    color: var(--navy);
    text-transform: uppercase;
    line-height: 1;
}
.section-title .jp,
.section-title-center .jp {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.32em;
    color: var(--navy);
    opacity: 0.75;
    display: block;
    margin-top: 12px;
}
.section-title .co-blue,
.section-title-center .co-blue { color: var(--navy) !important; }
.section-title.line-blue::before,
.section-title.line-blue::after { background: var(--navy) !important; }

/* legacy .sub-title (h3 below section title) */
.sub-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    color: var(--navy);
}

/* generic body text */
.fo14 { color: var(--ink); }
.co-blue { color: var(--navy) !important; }

/* ============================================================
   Container & layout
============================================================ */
.container { overflow: visible; padding-top: 0; }
main { padding-top: 0; }
.inner { max-width: 1280px; margin: 0 auto; padding: 0 5vw; }

/* ============================================================
   Footer — match top page (white + navy + gold)
============================================================ */
footer {
    position: relative;
    background: var(--white);
    color: var(--navy);
    padding: 0;
    border-top: 3px solid var(--sun);
}
footer .footer-logo-area {
    background: transparent !important;
    padding: 60px 5vw 24px !important;
    text-align: left !important;
    max-width: 1280px;
    margin: 0 auto;
    border-bottom: 1px solid var(--rule);
}
footer .footer-logo {
    width: auto !important;
    margin: 0 !important;
}
footer .footer-logo a {
    display: inline-flex !important;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}
footer .footer-logo img {
    width: 240px !important;
    height: auto !important;
}
footer .footer-company-name {
    font-family: "Noto Sans JP", sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.25rem !important;
    letter-spacing: 0.36em !important;
    color: var(--navy) !important;
    margin: 0 !important;
    padding-left: 16px;
    border-left: 1px solid rgba(0, 41, 100, 0.22);
}
footer .footer-list-area {
    background: transparent !important;
    color: var(--navy) !important;
    padding: 36px 5vw !important;
    max-width: 1280px;
    margin: 0 auto;
}
footer .footer-list-area .inner {
    display: flex !important;
    flex-wrap: wrap;
    gap: 32px 56px;
    justify-content: flex-start;
    padding: 0;
}
footer .footer-list-area dl {
    margin: 0 !important;
}
footer .footer-list-area dt {
    font-family: "Noto Sans JP", sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.45rem !important;
    letter-spacing: 0.18em !important;
}
footer .footer-list-area dt a {
    color: var(--navy) !important;
    text-decoration: none !important;
    transition: color 0.3s ease, padding-left 0.3s ease;
    border: 0 !important;
}
footer .footer-list-area dt a:hover {
    color: var(--gold) !important;
    opacity: 1 !important;
    padding-left: 6px;
}
/* footer Social — Instagram icon link */
footer .footer-social {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 24px 5vw 0;
    border-top: 1px solid var(--rule);
}
footer .footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--navy);
    transition: color 0.3s ease, transform 0.3s ease;
}
footer .footer-social .social-icon {
    width: 32px;
    height: 32px;
    color: var(--navy);
    transition: color 0.3s ease, transform 0.3s ease;
}
footer .footer-social a:hover .social-icon {
    color: var(--gold);
    transform: rotate(-4deg);
}
footer .footer-social .social-handle {
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.18em;
    color: var(--navy);
    text-transform: uppercase;
    transition: color 0.3s ease;
}
footer .footer-social a:hover .social-handle { color: var(--gold); }

footer .copy {
    text-align: left !important;
    max-width: 1280px;
    margin: 24px auto 0 !important;
    padding: 24px 5vw 0;
    border-top: 1px solid var(--rule);
    font-family: "Oswald", sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.22em !important;
    color: var(--navy) !important;
    opacity: 0.5;
    text-transform: uppercase;
}
/* if social is present, remove copy's own top border */
footer .footer-social + .copy { border-top: 0; padding-top: 16px; }

/* ============================================================
   Contact info card — single compact horizontal card
   (FAX削除後の電話単独カードを面積使いすぎないよう刷新)
============================================================ */
.contact-info-grid {
    display: flex !important;
    justify-content: center !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}
.contact-info-card {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    text-align: left !important;
    padding: 24px 32px !important;
    max-width: 860px;
    width: 100%;
    background: var(--paper) !important;
    border-left: 4px solid var(--sun) !important;
    border-radius: 2px !important;
    transition: box-shadow 0.3s ease !important;
}
.contact-info-card:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 41, 100, 0.2) !important;
}
.contact-info-icon {
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    flex: 0 0 44px;
}
.contact-info-icon svg {
    stroke: var(--navy) !important;
}
.contact-info-card > h3 {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    color: var(--navy) !important;
    opacity: 0.7;
    margin: 0 18px 0 0 !important;
    white-space: nowrap;
    border-right: 1px solid var(--rule);
    padding-right: 18px;
}
.contact-info-card .tel-number {
    font-family: "Oswald", sans-serif !important;
    font-style: normal !important;
    font-size: 2.6rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    color: var(--navy) !important;
    margin: 0 !important;
    line-height: 1;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.contact-info-card .tel-number:hover { color: var(--gold) !important; opacity: 1 !important; }
.contact-info-note {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.1rem !important;
    letter-spacing: 0.08em;
    color: var(--navy) !important;
    opacity: 0.65;
    margin: 0 0 0 auto !important;
    white-space: nowrap;
    padding-left: 18px;
    border-left: 1px solid var(--rule);
}

@media (max-width: 720px) {
    .contact-info-card {
        flex-wrap: wrap;
        gap: 14px 18px !important;
        padding: 22px 24px !important;
        text-align: left !important;
    }
    .contact-info-card > h3 {
        border: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        font-size: 1.1rem !important;
        width: 100%;
    }
    .contact-info-card .tel-number { font-size: 2.2rem !important; }
    .contact-info-note {
        margin: 0 !important;
        width: 100%;
        font-size: 1.05rem !important;
    }
}

/* ============================================================
   Page-top button
============================================================ */
.page-top a {
    background: var(--navy) !important;
}
.page-top a::before {
    border-color: var(--white) !important;
}

/* ============================================================
   Mobile
============================================================ */
@media (max-width: 1100px) {
    #header .header-inner { gap: 20px; padding: 0 22px; }
    #header .g-nav ul { gap: 22px !important; }
    #header .g-nav a { font-size: 1.3rem; letter-spacing: 0.14em; }
}

/* Switch to hamburger at 960px to avoid header overflow */
@media (max-width: 960px) {
    #header { height: 56px; }
    #header.fixed { height: 50px; }
    #header .header-inner { padding: 0 18px; gap: 12px; }
    #header .logo img { height: 22px; }
    #header .logo .logo-company-name {
        font-size: 1.1rem;
        letter-spacing: 0.08em;
        padding-left: 10px;
    }
    .page-header { min-height: 44vh; padding: 100px 22px 50px; }
    /* hide desktop nav, show legacy hamburger */
    #header .g-nav {
        display: none;
    }
    /* mobile nav menu — open state covers below the header */
    body.nav-open #header .g-nav,
    #header .g-nav.open {
        display: block !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 56px) !important;
        min-height: 0 !important;
        background: var(--white) !important;
        border-bottom: 1px solid var(--rule);
        padding: 16px 22px 28px !important;
        overflow-y: auto !important;
        flex: none !important;
        z-index: 99;
    }
    body.nav-open #header .g-nav ul,
    #header .g-nav.open ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    body.nav-open #header .g-nav li,
    #header .g-nav.open li {
        border-bottom: 1px solid var(--rule);
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
    }
    body.nav-open #header .g-nav a,
    #header .g-nav.open a {
        display: block !important;
        width: 100%;
        padding: 14px 4px !important;
        font-size: 1.55rem !important;
        color: var(--navy) !important;
    }
    /* hamburger button visible */
    #header .nav-btn-area { display: block !important; }

    .page-header { min-height: 36vh; padding: 90px 22px 44px; }
    .page-title .enfont { font-size: 44px !important; }
    .page-title .jp { font-size: 1.15rem; letter-spacing: 0.24em; }
    .page-lead { font-size: 1.35rem; }

    .breadcrumb { padding: 12px 22px; }
    .breadcrumb ol { font-size: 1rem; letter-spacing: 0.16em; }

    footer .footer-logo-area { padding: 40px 22px 20px !important; }
    footer .footer-logo a { flex-wrap: wrap; gap: 10px; }
    footer .footer-logo img { width: 200px !important; }
    footer .footer-company-name { font-size: 1.1rem !important; padding-left: 10px; }
    footer .footer-list-area { padding: 26px 22px !important; }
    footer .footer-list-area .inner { gap: 12px 28px; }
    footer .footer-list-area dt { font-size: 1.3rem !important; }
}

/* ============================================================
   Works modal — fullscreen overlay with prev/next navigation
============================================================ */
.works-card { cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.works-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -28px rgba(0, 41, 100, 0.35); }

.works-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}
.works-modal.is-open { display: flex; }
.works-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 23, 56, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: works-fade 0.3s ease;
}
@keyframes works-fade { from { opacity: 0; } to { opacity: 1; } }
.works-modal-content {
    position: relative;
    z-index: 1;
    width: min(1100px, 92vw);
    max-height: 88vh;
    background: var(--white);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.55);
    display: flex;
    overflow: hidden;
    animation: works-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes works-pop {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.works-modal-body {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    width: 100%;
}

.works-modal-image {
    background: var(--navy-deep);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.works-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.works-modal.is-swapping .works-modal-image img { opacity: 0; }

.works-modal-info {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}
.works-modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.works-modal-tags .cat {
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    padding: 6px 12px;
}
.works-modal-tags .area {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--navy);
    opacity: 0.65;
    padding: 6px 0;
}
.works-modal-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--navy);
    margin: 0;
    line-height: 1.55;
}
.works-modal-specs {
    margin: 0;
    border-top: 1px solid var(--rule);
    padding-top: 18px;
}
.works-modal-specs .spec-row {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
    font-family: "Noto Sans JP", sans-serif;
}
.works-modal-specs dt {
    flex: 0 0 96px;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.55;
    align-self: center;
}
.works-modal-specs dd {
    margin: 0;
    font-weight: 500;
    font-size: 1.45rem;
    color: var(--navy);
}
.works-modal-counter {
    margin-top: auto;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.32em;
    color: var(--navy);
    opacity: 0.5;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}

/* close + nav buttons */
.works-modal-close,
.works-modal-prev,
.works-modal-next {
    position: absolute;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    color: var(--navy);
}
.works-modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.works-modal-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--navy);
    top: 50%;
    left: 50%;
}
.works-modal-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.works-modal-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.works-modal-close:hover { background: var(--sun); transform: rotate(90deg); }

.works-modal-prev,
.works-modal-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.works-modal-prev svg,
.works-modal-next svg { width: 22px; height: 22px; }
.works-modal-prev { left: -26px; }
.works-modal-next { right: -26px; }
.works-modal-prev:hover,
.works-modal-next:hover { background: var(--sun); }

/* prevent body scroll when modal is open */
body.works-modal-open { overflow: hidden; }

/* mobile — stack image above info */
@media (max-width: 720px) {
    .works-modal-content {
        width: 94vw;
        max-height: 92vh;
    }
    .works-modal-body { grid-template-columns: 1fr; }
    .works-modal-image { aspect-ratio: 4/3; }
    .works-modal-info { padding: 24px 20px; gap: 14px; }
    .works-modal-title { font-size: 1.6rem; }
    .works-modal-prev,
    .works-modal-next {
        width: 42px; height: 42px;
        background: rgba(255, 255, 255, 0.92);
    }
    .works-modal-prev { left: 6px; }
    .works-modal-next { right: 6px; }
    .works-modal-close { top: 8px; right: 8px; }
}

/* ============================================================
   Concept page — Pitch sections (img + text 2-col, alternating)
============================================================ */
.koyo-pitch {
    padding: 100px 5vw;
    background: var(--white);
}
.koyo-pitch + .koyo-pitch { padding-top: 0; }
.koyo-pitch .inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}
.koyo-pitch__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 6vw;
    align-items: center;
}
.koyo-pitch--reverse .koyo-pitch__inner {
    grid-template-columns: 1fr 1.05fr;
}
.koyo-pitch--reverse .koyo-pitch__img { order: 2; }

.koyo-pitch__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    background: var(--paper);
}
.koyo-pitch__img::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 41, 100, 0.06);
    pointer-events: none;
}
.koyo-pitch__img::before {
    content: "";
    position: absolute;
    bottom: -12px;
    width: 60px;
    height: 3px;
    background: var(--sun);
    z-index: 2;
}
.koyo-pitch:not(.koyo-pitch--reverse) .koyo-pitch__img::before { right: -12px; }
.koyo-pitch--reverse .koyo-pitch__img::before { left: -12px; }
.koyo-pitch__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.6s ease;
}
.koyo-pitch:hover .koyo-pitch__img img { transform: scale(1.04); }

.koyo-pitch__text {
    position: relative;
}
.koyo-pitch__title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 2.8vw, 3.4rem);
    line-height: 1.55;
    letter-spacing: 0.04em;
    color: var(--navy);
    margin: 0 0 32px;
}
.koyo-pitch__title .accent {
    color: var(--navy);
    background: linear-gradient(transparent 62%, rgba(254, 179, 47, 0.45) 62%);
    padding: 0 4px;
}
.koyo-pitch__text p {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.55rem;
    line-height: 2.05;
    letter-spacing: 0.06em;
    color: var(--ink);
    margin: 0 0 22px;
}
.koyo-pitch__text p:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
    .koyo-pitch { padding: 70px 22px; }
    .koyo-pitch + .koyo-pitch { padding-top: 0; }
    .koyo-pitch__inner,
    .koyo-pitch--reverse .koyo-pitch__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .koyo-pitch--reverse .koyo-pitch__img { order: 0; }
    .koyo-pitch__title { font-size: 1.9rem; margin-bottom: 22px; }
    .koyo-pitch__text p { font-size: 1.4rem; line-height: 1.95; }
}
