﻿:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --text: #192230;
    --muted: #5d6a7b;
    --primary: #e4531e;
    --primary-dark: #bc3f12;
    --stroke: #d8dfeb;
    --radius: 18px;
    --shadow: 0 14px 36px rgba(15, 24, 43, 0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    background:
        radial-gradient(circle at 90% -10%, #ffe4d4 0%, transparent 40%),
        radial-gradient(circle at -10% 20%, #dff4ff 0%, transparent 35%),
        var(--bg);
    color: var(--text);
}

.container { width: min(1160px, 92vw); margin: 0 auto; }
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(245,247,250,0.92); border-bottom: 1px solid var(--stroke); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); font-family: "Sora", sans-serif; font-weight: 700; }
.brand-logo { width: 56px; height: auto; display: block; border-radius: 8px; background: #fff; padding: 3px; border: 1px solid #e8edf5; }
.brand-text { display: grid; line-height: 1.05; gap: .18rem; }
.brand-title { font-size: 1rem; letter-spacing: .1px; }
.brand-sub { font-size: .68rem; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: .8rem; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; padding: .45rem .7rem; border-radius: 999px; }
.nav-links a:hover { background: #e8edf5; }
.cta { text-decoration: none; background: var(--text); color: #fff; padding: .62rem .95rem; border-radius: 10px; font-weight: 600; }

.hero { display: grid; grid-template-columns: 1.4fr .9fr; gap: 1.3rem; padding: 2.3rem 0 1rem; }
.hero-content, .hero-card { background: var(--surface); border: 1px solid var(--stroke); box-shadow: var(--shadow); border-radius: var(--radius); }
.hero-content { padding: 2rem; }
.hero-content h1 { font-family: "Sora", sans-serif; line-height: 1.15; margin: .5rem 0 .8rem; font-size: clamp(1.9rem, 2.6vw, 2.8rem); }
.hero-content p { color: var(--muted); font-size: 1.04rem; margin: 0 0 1.1rem; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; background: #fff1eb; color: #9d380f; padding: .35rem .75rem; font-size: .82rem; font-weight: 700; letter-spacing: .2px; }
.hero-actions { display: flex; gap: .7rem; }
.hero-card { padding: 1.35rem; }
.hero-card h3 { margin-top: 0; font-family: "Sora", sans-serif; }
.hero-card ul { margin: 0; padding-left: 1.05rem; color: var(--muted); line-height: 1.9; }

.btn { border: none; display: inline-flex; justify-content: center; align-items: center; cursor: pointer; text-decoration: none; padding: .72rem 1rem; border-radius: 10px; font-weight: 700; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--stroke); }

.section { padding: 2rem 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { font-family: "Sora", sans-serif; margin: 0; font-size: 1.55rem; }
.section-head a { color: var(--primary-dark); text-decoration: none; font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.card-body { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.card h3 { font-family: "Sora", sans-serif; margin: 0; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }
.card.empty { justify-content: center; min-height: 220px; padding: 1rem; }
.inline-link { margin-top: auto; color: var(--primary-dark); text-decoration: none; font-weight: 700; }
.card-clickable { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.card-clickable:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(15, 24, 43, 0.13); }
.card-clickable .inline-link { pointer-events: none; }
.card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
}
.card-cover-link:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: -3px;
    border-radius: 15px;
}

.faq-list { display: grid; gap: .7rem; }
.faq-item { background: #fff; border: 1px solid var(--stroke); border-radius: 12px; padding: .8rem .9rem; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: .7rem 0 0; color: var(--muted); line-height: 1.5; }

.two-col { display: grid; grid-template-columns: 1.4fr .9fr; gap: 1rem; }
.panel { background: #fff; border-radius: 14px; border: 1px solid var(--stroke); box-shadow: var(--shadow); padding: 1.1rem; }
.panel h2, .panel h3 { margin-top: 0; font-family: "Sora", sans-serif; }
.page-head h1 { margin: 0 0 .5rem; font-family: "Sora", sans-serif; font-size: clamp(1.8rem, 2.4vw, 2.3rem); }
.page-head p { margin: 0; color: var(--muted); }
.detail-image { width: 100%; border-radius: 12px; border: 1px solid var(--stroke); margin-bottom: .85rem; }
.richtext { color: var(--text); line-height: 1.7; }
.meta { color: var(--muted); font-size: .92rem; }

.contact-list { margin: 0; padding-left: 1rem; display: grid; gap: .65rem; }
.contact-list a { color: var(--primary-dark); text-decoration: none; }
.social-links { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.social-links a {
    text-decoration: none;
    border: 1px solid #34476b;
    border-radius: 999px;
    color: #d4def0;
    padding: .35rem .7rem;
    font-size: .83rem;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.form-grid label { display: grid; gap: .35rem; font-weight: 600; }
.form-grid input, .form-grid textarea {
    width: 100%;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: .7rem .8rem;
    font: inherit;
}
.form-grid .full { grid-column: 1 / -1; }
.text-error { color: #b12424; font-size: .84rem; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; opacity: 0 !important; }
.alert { border-radius: 10px; padding: .7rem .85rem; margin-bottom: .8rem; font-weight: 600; }
.alert.success { background: #eaf9ef; color: #15603a; border: 1px solid #b8e7c7; }
.comment-list { display: grid; gap: .7rem; }
.comment-item { border: 1px solid var(--stroke); border-radius: 10px; padding: .8rem; background: #fff; }
.comment-item h4 { margin: 0 0 .35rem; }
.mt-3 { margin-top: 1rem; }

.reference-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.reference-item {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: .7rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.reference-item img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    background: #f8fafd;
    border-radius: 8px;
    margin-bottom: .55rem;
}
.reference-item h3 { margin: 0; font-size: .86rem; }

.timeline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.timeline-item {
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: .9rem;
}
.timeline-item h3 { margin: 0 0 .35rem; font-family: "Sora", sans-serif; color: var(--primary-dark); }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.45; }

.footer { background: #0f182b; color: #d4def0; margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; padding: 1.6rem 0 1rem; }
.footer h3 { margin: 0 0 .3rem; color: #fff; font-family: "Sora", sans-serif; }
.footer p { margin: 0; color: #a8b6d2; }
.footer-links { display: grid; gap: .35rem; }
.footer-links a { color: #d4def0; text-decoration: none; }
.copy { border-top: 1px solid #2a3651; padding: .9rem 0 1.2rem; color: #9eb0d6; font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: all .55s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
    .hero, .two-col, .footer-inner { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar-inner { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; padding: .55rem 0; min-height: unset; }
    .nav-links { grid-column: 1 / -1; order: 3; justify-content: center; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2rem; }
    .nav-links a { white-space: nowrap; }
    .cta { justify-self: end; }
}

@media (max-width: 720px) {
    .brand-logo { width: 48px; }
    .brand-sub { display: none; }
    .brand-title { font-size: .92rem; }
    .topbar-inner { grid-template-columns: 1fr; }
    .brand { justify-self: center; }
    .cta { justify-self: center; width: 100%; max-width: 220px; }
    .nav-links { justify-content: flex-start; }
    .card-grid { grid-template-columns: 1fr; }
    .reference-grid { grid-template-columns: 1fr 1fr; }
    .timeline-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}
