@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=M+PLUS+Rounded+1c:wght@400;700&family=Bruno+Ace&display=swap');

/* 下町ロケット */
:root {
    /* 下町ロケット カラーパレット */
    --primary-color: #1a365d;
    /* 佃製作所ブルー（誠実な紺） */
    --primary-dark: #0f2942;
    --secondary-color: #e63946;
    /* 挑戦の情熱（赤） */
    --accent-color: #f3722c;
    /* 加工の火花・夕日（オレンジ） */
    --text-color: #2d3748;
    /* 鉄の色 */
    --text-light: #4a5568;
    --bg-color: #f7fafc;
    /* 図面用紙の白 */
    --light-bg: #edf2f7;
    /* 工場のコンクリート */
    --border-color: #cbd5e0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bi-color: #2f855a;
    --danger-color: #c53030;
    --danger-bg: #fff5f5;
    --danger-border: #feb2b2;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', serif;
    /* 職人の矜持を感じさせる明朝体 */
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--light-bg) 1px, transparent 1px),
        linear-gradient(90deg, var(--light-bg) 1px, transparent 1px);
    background-size: 40px 40px;
    /* 方眼紙（図面）のような背景 */
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    border-bottom: 4px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a.active {
    border-bottom: 3px solid var(--accent-color);
}

/* Hero Section: Industrial Intensity */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: #fff;
    text-align: center;
    padding: 7rem 1rem;
    position: relative;
    border-bottom: 10px solid var(--light-bg);
}

.hero h1 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
}

/* Container & Sections */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

section {
    margin-bottom: 7rem;
}

h2 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

h2::before {
    content: "";
    width: 12px;
    height: 1.2em;
    background: var(--secondary-color);
    margin-right: 15px;
    display: inline-block;
}

h3 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: var(--primary-color);
    margin-top: 2rem;
    font-weight: 700;
}

/* UI Elements */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 2px;
    /* 精密機械のようなエッジ */
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 2px solid var(--primary-color);
    font-family: 'M PLUS Rounded 1c', sans-serif;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* SME Badge */
.sme-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    clip-path: polygon(0% 0%, 100% 0%, 95% 100%, 0% 100%);
    /* 少し傾斜をつけて力強さを */
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #fff;
    text-align: center;
    padding: 6rem 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

footer p {
    font-family: 'Bruno Ace', cursive;
    font-size: 0.85rem;
    opacity: 0.4;
}

/* --- Global Utility Classes --- */
.u-text-center {
    text-align: center !important;
}

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

.u-text-light {
    color: var(--text-light) !important;
}

.u-bold {
    font-weight: bold !important;
}

.u-display-inline-block {
    display: inline-block !important;
}

.u-width-full {
    width: 100% !important;
}

.u-opacity-9 {
    opacity: 0.9 !important;
}

/* Spacing */
.u-mt-1 {
    margin-top: 1rem !important;
}

.u-mt-2 {
    margin-top: 2rem !important;
}

.u-mt-3 {
    margin-top: 3rem !important;
}

.u-mt-5 {
    margin-top: 5rem !important;
}

.u-mb-0 {
    margin-bottom: 0 !important;
}

.u-mb-1 {
    margin-bottom: 1rem !important;
}

.u-mb-2 {
    margin-bottom: 2rem !important;
}

.u-mb-3 {
    margin-bottom: 3rem !important;
}

.u-mb-4 {
    margin-bottom: 4rem !important;
}

/* Typography */
.u-font-sm {
    font-size: 0.8rem !important;
}

.u-font-md {
    font-size: 0.95rem !important;
}

.u-font-lg {
    font-size: 1.1rem !important;
}

.u-font-lg-alt {
    font-size: 1.15rem !important;
}

.u-font-xl {
    font-size: 1.2rem !important;
}

.u-line-height-18 {
    line-height: 1.8 !important;
}

/* Layout */
.l-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.l-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.l-flex-column-gap-2 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.l-flex-1 {
    flex: 1 !important;
}

@media screen and (max-width: 600px) {
    .l-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Colors */
.u-color-bi {
    color: var(--bi-color) !important;
}

.u-color-danger {
    color: var(--danger-color) !important;
}

.u-bg-white {
    background: #fff !important;
}

/* --- Component Specific --- */
.card-light {
    background: #fff;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--light-bg);
    position: relative;
}

.mission-banner {
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 2rem;
    border-left: 10px solid var(--secondary-color);
}

/* Company Table */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border: 1px solid var(--border-color);
}

.company-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.company-table td:first-child {
    width: 30%;
    background-color: var(--light-bg);
    font-weight: bold;
    color: var(--primary-color);
}

/* App Cards */
.app-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 6px 6px 0px var(--light-bg);
    transition: var(--transition);
}

.app-card:hover {
    transform: translateX(5px);
    border-color: var(--secondary-color);
}

.app-icon img {
    border: 1px solid var(--border-color);
    background: #fdfdfd;
    padding: 10px;
}

.app-features {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
}

/* Laddering & Limitations */
.laddering-box {
    background: #fff;
    border: 2px solid var(--primary-color);
    padding: 3rem;
    margin: 4rem 0;
}

.bi-section {
    background: var(--light-bg);
    border-top: 4px solid var(--bi-color);
    padding: 4rem;
}

.limitations-box {
    border: 2px solid var(--danger-border);
    background: var(--danger-bg);
    padding: 3rem;
}

/* Contact Form */
.contact-form-container {
    border: 1px solid var(--border-color);
    padding: 4rem;
    background: #fff;
}

.contact-form-container input,
.contact-form-container select,
.contact-form-container textarea {
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-color);
}

.contact-form-container input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Burger */
.burger div {
    background-color: #fff;
}

@media screen and (max-width: 768px) {
    .nav-links {
        background-color: var(--primary-color);
    }
}


/* Fade In Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Navigation */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: #f7fafc;
    margin: 6px;
    transition: var(--transition);
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

.nav-active {
    transform: translateX(0%);
    /* background-color: #1a365d; */
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
}

/* --- Global Utility & Layout Classes --- */
.u-text-center {
    text-align: center !important;
}

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

.u-text-light {
    color: var(--text-light) !important;
}

.u-bold {
    font-weight: bold !important;
}

.u-display-inline-block {
    display: inline-block !important;
}

.u-width-full {
    width: 100% !important;
}

.u-opacity-9 {
    opacity: 0.9 !important;
}

/* Spacing */
.u-mt-1 {
    margin-top: 1rem !important;
}

.u-mt-2 {
    margin-top: 2rem !important;
}

.u-mt-3 {
    margin-top: 3rem !important;
}

.u-mt-5 {
    margin-top: 5rem !important;
}

.u-mb-1 {
    margin-bottom: 1rem !important;
}

.u-mb-2 {
    margin-bottom: 2rem !important;
}

.u-mb-3 {
    margin-bottom: 3rem !important;
}

.u-mb-4 {
    margin-bottom: 4rem !important;
}

/* Typography */
.u-font-sm {
    font-size: 0.8rem !important;
}

.u-font-md {
    font-size: 0.95rem !important;
}

.u-font-lg {
    font-size: 1.1rem !important;
}

.u-font-lg-alt {
    font-size: 1.15rem !important;
}

.u-font-xl {
    font-size: 1.2rem !important;
}

.u-line-height-18 {
    line-height: 1.8 !important;
}

/* Flex & Grid */
.l-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.l-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.l-flex-column-gap-2 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.l-flex-1 {
    flex: 1 !important;
}

@media screen and (max-width: 600px) {
    .l-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Colors */
.u-color-bi {
    color: var(--bi-color) !important;
    border-left-color: var(--bi-color) !important;
}

.u-color-danger {
    color: var(--danger-color) !important;
    border-left-color: var(--danger-color) !important;
}

.u-bg-white {
    background: #fff !important;
}

/* --- Component Specific Styles --- */
.sme-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.badge-blue {
    background: #e6f7ff;
    color: #1890ff;
}

.badge-orange {
    background: #fff7e6;
    color: #fa8c16;
}

.badge-green {
    background: #f6ffed;
    color: #52c41a;
}

.card-light {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
}

.mission-banner {
    background: var(--primary-color);
    color: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
}

/* Company Table */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.company-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.company-table td:first-child {
    width: 30%;
    background-color: var(--light-bg);
    font-weight: bold;
    color: var(--primary-color);
    border-right: 1px solid var(--border-color);
}

@media screen and (max-width: 600px) {
    .company-table td {
        display: block;
        width: 100% !important;
        border-right: none;
    }
}

/* App Cards */
.app-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 768px) {
    .app-card {
        flex-direction: row;
        gap: 2.5rem;
        align-items: flex-start;
    }

    .app-icon {
        width: 150px;
        flex-shrink: 0;
    }

    .app-content {
        flex-grow: 1;
    }
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.app-icon img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.app-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-beta {
    background: #e3f2fd;
    color: #1976d2;
}

.status-experiment {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-alpha {
    background: #fff3e0;
    color: #f57c00;
}

.app-features {
    margin-top: 1.5rem;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.app-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.app-features li::before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-weight: bold;
}

.coming-soon {
    font-size: 0.8rem;
    font-weight: normal;
    color: #999;
    margin-left: 0.5rem;
    background: #eee;
    padding: 2px 8px;
    border-radius: 4px;
}

.app-screenshots {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.app-screenshots img {
    height: 160px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    object-fit: contain;
    background: #fff;
}

.app-screenshots img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.app-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
}

.app-link-external {
    color: inherit;
    text-decoration: underline;
}

/* Solution Flow */
.solution-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    position: relative;
}

.flow-card {
    padding: 2.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.flow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.flow-step {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

.tech-tag {
    display: inline-block;
    background: var(--light-bg);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
}

.bi-tag {
    background: #fff !important;
    color: var(--bi-color) !important;
}

/* Laddering & Limitations */
.laddering-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 20px;
    margin: 4rem 0;
    border-left: 8px solid var(--primary-color);
}

.bi-section {
    background: #f6ffed;
    padding: 3rem;
    border-radius: 20px;
    margin: 4rem 0;
    border: 1px solid #b7eb8f;
}

.limitations-box {
    margin-top: 6rem;
    padding: 3rem;
    border-radius: 20px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
}

.limitations-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--danger-border);
    padding-top: 1.5rem;
    color: #666;
}

/* Tables Common */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.comparison-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 1.2rem;
    text-align: left;
}

.comparison-table td {
    padding: 1.2rem;
    border: 1px solid #eee;
}

/* Patents Gallery */
.patent-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.patent-gallery img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

/* Contact Form */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.contact-form-container label {
    display: block;
    margin-bottom: 0.8rem;
    margin-top: 0.8rem;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-color);
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea,
.contact-form-container select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    background: var(--light-bg);
    transition: var(--transition);
}

.contact-form-container input:focus,
.contact-form-container textarea:focus,
.contact-form-container select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(4, 13, 225, 0.05);
}

.contact-form-container textarea {
    height: 180px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.required::after {
    content: "必須";
    font-size: 0.7rem;
    background: #ff4d4f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
}

#submit-message {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.error {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}

@media screen and (max-width: 600px) {
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.confirm-list {
    margin-bottom: 2.5rem;
}

.confirm-item {
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--light-bg);
    padding-bottom: 0.5rem;
}

.confirm-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: bold;
    display: block;
    margin-bottom: 0.2rem;
}

.confirm-value {
    font-size: 1rem;
    color: var(--text-color);
    white-space: pre-wrap;
    word-break: break-all;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions .btn {
    flex: 1;
}

@media screen and (max-width: 600px) {
    .modal-content {
        padding: 1.5rem;
    }
    .modal-actions {
        flex-direction: column;
    }
}

/* Glossary & Tooltip */
.glossary-term {
    background: transparent;
    border-bottom: 1.5px dotted var(--primary-color);
    cursor: help;
    color: inherit;
    transition: color 0.2s ease;
}

.glossary-term:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Tippy.js Tooltip links */
.tippy-box {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.tippy-content a {
    color: var(--primary-color) !important;
    font-weight: bold;
    text-decoration: underline;
}

.tippy-content a:hover {
    color: var(--secondary-color) !important;
}

.mission-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-large);
}