/* =====================================================================
   Japan Arch – public website (layout follows japanarch.org)
   Uses the tokens from style.css: --ja-red, --ja-dark, etc.
   ===================================================================== */
.site { font-family: 'Poppins', system-ui, sans-serif; color: #3d3d3d; background: #fff; }
.site h1, .site h2, .site h3, .site h4 { font-family: 'Poppins', sans-serif; color: var(--ja-dark); }
.btn-pill { border-radius: 50px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ja-dark); color: rgba(255,255,255,.75); font-size: .82rem; padding: 8px 0; }
.topbar a, .topbar span { color: rgba(255,255,255,.75); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--ja-red); }

/* ---------- Header ---------- */
.site-nav { background: #fff; padding: 12px 0; transition: box-shadow .2s, padding .2s; z-index: 1030; }
.site-nav.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); padding: 6px 0; }
.site-logo { height: 52px; width: auto; }
.logo-fallback { font-weight: 700; font-size: 1.35rem; color: var(--ja-dark); }
.logo-fallback i { color: var(--ja-red); }
.site-nav .nav-link { font-weight: 500; color: var(--ja-dark); padding: 8px 12px !important; position: relative; white-space: nowrap; }
.site-nav .btn { white-space: nowrap; }
.nav-phone span { white-space: nowrap; }
.site-nav .nav-link::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--ja-red);
    transform: scaleX(0); transition: transform .2s;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--ja-red); }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.nav-phone { align-items: center; gap: 10px; text-decoration: none; color: var(--ja-dark); font-weight: 600; font-size: .9rem; line-height: 1.2; }
.nav-phone small { display: block; font-weight: 400; color: #888; font-size: .72rem; }
.nav-phone-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--ja-red-soft); color: var(--ja-red); display: flex; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.site-hero {
    position: relative; overflow: hidden; padding: 80px 0 90px;
    background:
        radial-gradient(circle at 92% 18%, rgba(201,29,46,.10) 0 180px, transparent 181px),
        linear-gradient(135deg, #fff 0%, #FFF4F5 100%);
}
.site-hero::before {
    content: '日本'; font-family: 'Noto Sans JP', sans-serif; font-weight: 900; position: absolute; left: -30px; bottom: -70px;
    font-size: 15rem; line-height: 1; color: var(--ja-dark); opacity: .03; pointer-events: none;
}
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ja-border); border-radius: 50px;
    padding: 6px 16px; font-size: .82rem; font-weight: 500; margin-bottom: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.hero-tag .jp { color: var(--ja-red); font-weight: 700; }
.hero-h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; margin-bottom: 14px; }
.hero-h1 span { color: var(--ja-red); }
.hero-sub { font-size: 1.25rem; font-weight: 700; color: var(--ja-dark); margin-bottom: 10px; }
.hero-text { color: #5c5c5c; font-size: 1.02rem; max-width: 540px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 30px; }
.hero-points li { padding: 6px 0; font-weight: 500; color: var(--ja-dark); }
.hero-points i { color: var(--ja-red); margin-right: 10px; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 20px; }
.hero-visual.no-img { min-height: 360px; border-radius: 20px; background: linear-gradient(135deg, var(--ja-red), var(--ja-red-dark)); }
.hero-visual.no-img img { display: none; }
.hero-badge {
    position: absolute; left: -10px; bottom: 24px; background: #fff; border-radius: 14px; padding: 12px 18px;
    display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.12);
}
.hero-badge i { width: 42px; height: 42px; border-radius: 10px; background: var(--ja-red); color: #fff; display: flex; align-items: center; justify-content: center; }
.hero-badge small { display: block; color: #888; font-size: .72rem; }
.hero-badge strong { color: var(--ja-dark); }

/* ---------- Sections ---------- */
.sec { padding: 90px 0; }
.sec-tint { background: #F8F8FA; }
.sec-dark { background: var(--ja-dark); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-kicker {
    display: inline-block; color: var(--ja-red); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
    margin-bottom: 8px; padding-left: 34px; position: relative;
}
.sec-kicker::before { content: ''; position: absolute; left: 0; top: 50%; width: 24px; height: 2px; background: var(--ja-red); }
.sec-head .sec-kicker { padding-right: 34px; }
.sec-head .sec-kicker::after { content: ''; position: absolute; right: 0; top: 50%; width: 24px; height: 2px; background: var(--ja-red); }
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.25; margin-bottom: 16px; }

.img-frame { position: relative; min-height: 240px; border-radius: 18px; background: var(--ja-red-soft); }
.img-frame img { display: block; width: 100%; }
.img-frame img { border-radius: 18px; position: relative; z-index: 1; }
.img-frame::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--ja-red); border-radius: 18px; opacity: .25; }
.img-frame.no-img { min-height: 300px; border-radius: 18px; background: var(--ja-red-soft); }
.img-frame.no-img img { display: none; }

.about-point { display: flex; align-items: center; gap: 10px; background: #F8F8FA; border-radius: 10px; padding: 12px 14px; font-weight: 500; font-size: .92rem; color: var(--ja-dark); }
.about-point i { color: var(--ja-red); width: 20px; text-align: center; }

/* ---------- Service cards ---------- */
.svc-card {
    background: #fff; border-radius: 18px; padding: 34px 28px; position: relative; overflow: hidden;
    border-bottom: 4px solid transparent; box-shadow: 0 8px 30px rgba(0,0,0,.05); transition: transform .25s, border-color .25s, box-shadow .25s;
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--ja-red); box-shadow: 0 18px 40px rgba(0,0,0,.09); }
.svc-num { position: absolute; right: 22px; top: 14px; font-size: 3rem; font-weight: 800; color: var(--ja-dark); opacity: .05; }
.svc-icon { width: 66px; height: 66px; border-radius: 16px; background: var(--ja-red-soft); color: var(--ja-red); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 22px; transition: background .25s, color .25s; }
.svc-card:hover .svc-icon { background: var(--ja-red); color: #fff; }
.svc-card h3 { font-size: 1.2rem; font-weight: 600; }
.svc-card p { color: #666; font-size: .94rem; }
.svc-link { color: var(--ja-red); font-weight: 600; text-decoration: none; font-size: .9rem; }
.svc-link i { transition: transform .2s; }
.svc-link:hover i { transform: translateX(4px); }

/* ---------- Course cards ---------- */
.crs-card { display: flex; flex-direction: column; border: 1px solid var(--ja-border); border-radius: 16px; padding: 26px; transition: box-shadow .2s, transform .2s; }
.crs-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.07); }
.crs-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.crs-level { background: var(--ja-dark); color: #fff; border-radius: 50px; padding: 4px 14px; font-size: .78rem; font-weight: 600; }
.crs-kanji { font-size: 2.6rem; font-weight: 900; color: var(--ja-red); opacity: .18; line-height: 1; }
.crs-card h3 { font-size: 1.1rem; font-weight: 600; }
.crs-card p { color: #666; font-size: .9rem; flex-grow: 1; }
.crs-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--ja-border); padding-top: 14px; font-size: .88rem; color: #777; }
.crs-foot strong { color: var(--ja-red); font-size: 1.05rem; }

/* ---------- Why Japan ---------- */
.why-title { font-size: 1.45rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.why-title i { width: 46px; height: 46px; border-radius: 12px; background: var(--ja-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--ja-border); color: #4a4a4a; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 10px;
    width: 20px; height: 20px; border-radius: 50%; background: var(--ja-red); color: #fff; font-size: 10px;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Where to study ---------- */
.intake-box { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px 10px; text-align: center; color: #fff; }
.intake-box span { display: block; color: var(--ja-red); font-weight: 700; font-size: 1.3rem; }
.intake-box strong { display: block; font-size: 1.05rem; }
.intake-box small { color: rgba(255,255,255,.55); }
.intake-box.active { background: var(--ja-red); border-color: var(--ja-red); }
.intake-box.active span { color: #fff; }
.intake-box.active small { color: rgba(255,255,255,.85); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-photo {
    width: 100%; aspect-ratio: 1 / 1.1; border-radius: 18px; overflow: hidden; margin-bottom: 14px; position: relative;
    background: linear-gradient(135deg, var(--ja-red), var(--ja-red-dark));
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-photo.no-img::after {
    content: attr(data-initials); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.4rem; font-weight: 700;
}
.team-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.team-card p { color: var(--ja-red); font-size: .84rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--ja-red) 0%, var(--ja-red-dark) 100%); padding: 52px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band h2 { color: #fff !important; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--ja-border); color: var(--ja-dark); font-weight: 500; }
.contact-item i { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--ja-red-soft); color: var(--ja-red); display: flex; align-items: center; justify-content: center; }
.contact-item small { display: block; color: #888; font-weight: 400; font-size: .76rem; }
.contact-item a { color: var(--ja-dark); text-decoration: none; }
.contact-item a:hover { color: var(--ja-red); }
.form-card { background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,.08); border-top: 4px solid var(--ja-red); }

/* ---------- Footer ---------- */
.site-footer { background: #111; color: rgba(255,255,255,.6); padding: 70px 0 0; font-size: .92rem; }
.site-footer h4 { color: #fff !important; font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.6); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer li { padding: 5px 0; }
.footer-logo { height: 46px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; }
.footer-contact i { color: var(--ja-red); width: 22px; }
.social { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; }
.social:hover { background: var(--ja-red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding: 20px 0; text-align: center; font-size: .84rem; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--ja-red); color: #fff;
    display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1040;
    box-shadow: 0 8px 20px rgba(201,29,46,.35);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--ja-red-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .site-hero { padding: 50px 0 60px; }
    .sec { padding: 64px 0; }
    .site-nav .navbar-collapse { padding: 12px 0; }
    .site-nav .nav-link::after { display: none; }
    .hero-badge { left: 12px; }
    .img-frame::before { display: none; }
}
@media (max-width: 575.98px) {
    .site-logo { height: 42px; }
    .form-card { padding: 22px; }
}
