/* DesignS トンマナ試作 — Command / HP と同一トークン */
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 5rem; }

.page-frame {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.page-frame .max-w-container-max {
    max-width: 100%;
}
.page-frame .ml-16 {
    margin-left: 0;
}
@media (min-width: 768px) {
    .page-frame .ml-16 {
        margin-left: 2rem;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #005daa;
    color: #ffffff;
    padding: 12px 24px;
    border: 1px solid #005daa;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-primary:hover { background-color: #0075d5; }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #0b1c30;
    padding: 12px 24px;
    border: 1px solid #0b1c30;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.btn-secondary:hover {
    background-color: #eff4ff;
    border-color: #005daa;
    color: #005daa;
}
.tech-card {
    background-color: #ffffff;
    border: 1px solid #c0c7d5;
    padding: 24px;
    transition: border-color 0.2s;
}
.tech-card:hover { border-color: #005daa; }
.bracket-spacing::before { content: "[ "; }
.bracket-spacing::after { content: " ]"; }
.hard-shadow-primary { box-shadow: 4px 4px 0 0 #005daa; }
.hard-shadow-accent { box-shadow: 4px 4px 0 0 #2e8bee; }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}
.spec-table th,
.spec-table td {
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #c0c7d5;
    vertical-align: top;
}
.spec-table th {
    background: #eff4ff;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0b1c30;
    font-weight: 500;
}

.callout {
    border: 1px solid #c0c7d5;
    border-left: 4px solid #2e8bee;
    background: #ffffff;
    padding: 20px 24px;
}
.callout-warn {
    border-left-color: #ba1a1a;
    background: #fff8f7;
}

.step-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #2e8bee;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    background: #eff4ff;
    border: 1px solid #c0c7d5;
    overflow: hidden;
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.grid-bg {
    background-image:
        linear-gradient(#005daa0f 1px, transparent 1px),
        linear-gradient(90deg, #005daa0f 1px, transparent 1px);
    background-size: 48px 48px;
}

code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85em;
    background: #eff4ff;
    border: 1px solid #c0c7d5;
    padding: 0.1em 0.4em;
}

a.guide-inline {
    color: #005daa;
    text-decoration: underline;
    text-underline-offset: 3px;
}
a.guide-inline:hover { color: #0075d5; }

.image-slot {
    border: 1px dashed #c0c7d5;
    background: #eff4ff;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    color: #717784;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1.5;
}
.image-slot .slot-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0b1c30;
    margin-bottom: 0.4rem;
}
.image-slot .slot-path {
    margin-top: 0.5rem;
    opacity: 0.75;
}
.image-slot.has-image,
.image-slot.has-video {
    border-style: solid;
    padding: 0;
    background: #ffffff;
}
.image-slot.has-image img,
.image-slot.has-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.image-slot.has-image img { cursor: zoom-in; }
.image-slot.has-video video { background: #0b1c30; }
.image-slot--compact { aspect-ratio: 4 / 3; max-width: 28rem; }

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem 1.5rem;
    background: rgb(11 28 48 / 0.88);
}
.image-lightbox.is-open { display: flex; }
.image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: zoom-out;
}
.image-lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #c0c7d5;
    background: #0b1c30;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
}
.image-lightbox__figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(96vw, 1400px);
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}
.image-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #c0c7d5;
}
.image-lightbox__caption,
.image-lightbox__hint {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgb(255 255 255 / 0.7);
}
.image-lightbox__caption:empty { display: none; }
.image-lightbox__hint {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .text-display-hero { font-size: 48px !important; }
    .px-margin-page { padding-left: 16px; padding-right: 16px; }
    .py-section-gap { padding-top: 64px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
