/* TeamFile site styles (layout ported from the Willed site, colors from the TeamFile logo) */
:root {
    --tf-dark: #15171c;          /* logo black, used for dark sections */
    --tf-darker: #0d0f13;
    --tf-orange: #f59e2e;        /* logo orange: fills, bars, icons */
    --tf-orange-hover: #ffb24f;
    --tf-orange-text: #b45f06;   /* orange for text on white (readable contrast) */
    --tf-ink: #1c1f26;
    --tf-mute: #636a78;
    --tf-line: #e6e3de;
    --tf-bg: #f7f5f1;
}

html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, li, th, td, a, input, textarea, button, span {
    font-family: "Noto Sans JP", "Poppins", "Hiragino Sans", "Yu Gothic", sans-serif;
}
body { color: var(--tf-ink); }

/* ---------- Fixed top bar ---------- */
header.w-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px; transition: background .3s, box-shadow .3s;
}
.w-topbar.is-solid, .w-topbar.is-open { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--tf-line); }
.w-topbar .w-brand img { height: 30px; width: auto; filter: brightness(0) invert(1); transition: filter .3s; }
.w-topbar.is-solid .w-brand img, .w-topbar.is-open .w-brand img { filter: none; }
.w-topbar-right { display: flex; align-items: center; }
.w-topbar nav a {
    margin-left: 28px; font-size: 13px; font-weight: 500; letter-spacing: .08em;
    color: #fff; text-decoration: none; transition: color .3s;
}
.w-topbar.is-solid nav a { color: var(--tf-ink); }
.w-topbar nav a:hover, .w-topbar nav a[aria-current="page"] { color: var(--tf-orange); }
.w-topbar.is-solid nav a:hover, .w-topbar.is-solid nav a[aria-current="page"] { color: var(--tf-orange-text); }

.w-lang { display: flex; margin-left: 28px; border: 1px solid rgba(255,255,255,.5); transition: border-color .3s; }
.w-topbar.is-solid .w-lang, .w-topbar.is-open .w-lang { border-color: var(--tf-line); }
.w-lang button {
    background: transparent; border: 0; padding: 4px 11px; font-size: 12px; font-weight: 600;
    letter-spacing: .08em; color: #fff; cursor: pointer; transition: background .2s, color .2s;
}
.w-topbar.is-solid .w-lang button, .w-topbar.is-open .w-lang button { color: var(--tf-ink); }
.w-lang button[aria-pressed="true"],
.w-topbar.is-solid .w-lang button[aria-pressed="true"],
.w-topbar.is-open .w-lang button[aria-pressed="true"] { background: var(--tf-orange); color: var(--tf-dark); }

.w-menu-btn {
    display: none; margin-left: 14px; width: 40px; height: 36px; padding: 0;
    background: transparent; border: 1px solid rgba(255,255,255,.5); cursor: pointer; position: relative;
}
.w-menu-btn span, .w-menu-btn::before, .w-menu-btn::after {
    content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .25s, opacity .25s, background .3s;
}
.w-menu-btn::before { top: 11px; }
.w-menu-btn span { top: 17px; }
.w-menu-btn::after { top: 23px; }
.w-topbar.is-solid .w-menu-btn, .w-topbar.is-open .w-menu-btn { border-color: var(--tf-line); }
.w-topbar.is-solid .w-menu-btn span, .w-topbar.is-solid .w-menu-btn::before, .w-topbar.is-solid .w-menu-btn::after,
.w-topbar.is-open .w-menu-btn span, .w-topbar.is-open .w-menu-btn::before, .w-topbar.is-open .w-menu-btn::after { background: var(--tf-ink); }
.w-topbar.is-open .w-menu-btn::before { transform: translateY(6px) rotate(45deg); }
.w-topbar.is-open .w-menu-btn span { opacity: 0; }
.w-topbar.is-open .w-menu-btn::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
    header.w-topbar { padding: 12px 16px; }
    .w-topbar .w-brand img { height: 26px; }
    .w-lang { margin-left: 0; }
    .w-menu-btn { display: block; }
    .w-topbar nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 6px 16px 14px;
    }
    .w-topbar.is-open nav { display: block; }
    .w-topbar nav a { display: block; margin: 0; padding: 14px 4px; border-bottom: 1px solid var(--tf-line); color: var(--tf-ink); font-size: 14px; }
    .w-topbar nav a:last-child { border-bottom: 0; }
}

/* ---------- Hero (top page) ---------- */
.w-hero { position: relative; background: var(--tf-dark) url(../images/product/documents.jpg) center 40% / cover no-repeat; overflow: hidden; }
.w-hero.fullscreen { min-height: clamp(560px, 80vh, 880px); }
.w-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(13,15,19,.92) 0%, rgba(13,15,19,.78) 45%, rgba(13,15,19,.45) 100%);
}
.w-hero .container { position: relative; max-width: none; padding-left: 6vw; padding-right: 6vw; }
.w-hero.fullscreen .container-fullscreen .text-middle { margin: auto auto auto 0; }
.w-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 5vw; width: 100%; padding-top: 70px; }
.w-hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .3em; color: var(--tf-orange); margin-bottom: 18px; }
.w-hero h1 { font-weight: 700; font-size: clamp(34px, 5.6vw, 76px); line-height: 1.15; letter-spacing: .04em; color: #fff; margin-bottom: 22px; }
.w-hero p { font-size: clamp(14px, 1.5vw, 17px); line-height: 2; color: rgba(255,255,255,.85); letter-spacing: .04em; max-width: 620px; }
.w-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.w-hero-pkg { flex: none; width: clamp(220px, 26vw, 400px); filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.w-hero .w-scroll { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: rgba(255,255,255,.5); }
@media (max-width: 991px) {
    .w-hero-inner { flex-direction: column; align-items: flex-start; gap: 36px; padding-top: 90px; padding-bottom: 90px; }
    .w-hero-pkg { width: 200px; align-self: center; }
    .w-hero .w-scroll { display: none; }
}
@media (max-width: 575px) {
    .w-hero.fullscreen { min-height: 0; }
    .w-hero-inner { padding-top: 120px; padding-bottom: 64px; gap: 28px; }
    .w-hero-pkg { width: 150px; }
    .w-hero-actions .w-btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Buttons ---------- */
.w-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px;
    font-size: 14px; font-weight: 700; letter-spacing: .1em; text-decoration: none;
    border: 1px solid transparent; border-radius: 0; transition: background .2s, color .2s, border-color .2s;
}
.w-btn-primary { background: var(--tf-orange); color: var(--tf-dark); }
.w-btn-primary:hover { background: var(--tf-orange-hover); color: var(--tf-dark); }
.w-btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.w-btn-ghost:hover { background: #fff; color: var(--tf-dark); }
.w-btn-dark { background: var(--tf-dark); color: #fff; }
.w-btn-dark:hover { background: #2a2e37; color: #fff; }

/* ---------- Sections & headings ---------- */
.w-eyebrow {
    display: block; font-size: 12px; font-weight: 700; letter-spacing: .3em;
    color: var(--tf-orange-text); text-transform: uppercase; margin-bottom: 10px;
}
.w-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin-bottom: 0; color: var(--tf-ink); }
.w-title-bar { width: 44px; height: 3px; background: var(--tf-orange); margin: 22px 0 0; }
.w-lead { font-size: 16px; line-height: 2; color: var(--tf-ink); max-width: 860px; margin: 28px 0 0; }
.w-section { padding: 110px 0; }
.w-section.alt { background: var(--tf-bg); }
.w-section-head { margin-bottom: 56px; }
.w-section-cta { margin-top: 48px; display: flex; justify-content: flex-end; }
@media (max-width: 767px) {
    .w-section { padding: 80px 0; }
    .w-section-head { margin-bottom: 40px; }
    .w-section-cta { justify-content: stretch; }
    .w-section-cta .w-btn { width: 100%; justify-content: center; }
}

/* ---------- Steps (before / deploy / after) ---------- */
.w-step {
    background: #fff; border: 1px solid var(--tf-line); border-top: 3px solid var(--tf-line);
    height: 100%; padding: 40px 32px 36px; position: relative; transition: transform .3s, box-shadow .3s;
}
.w-step:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(21,23,28,.09); }
.w-step.is-before { border-top-color: #9aa0ab; }
.w-step.is-deploy { border-top-color: var(--tf-orange); }
.w-step.is-after { border-top-color: var(--tf-dark); }
.w-step .no { position: absolute; top: 18px; right: 24px; font-size: 44px; font-weight: 700; color: var(--tf-line); line-height: 1; }
.w-step .w-badge { margin-bottom: 20px; }
.w-step h3 { font-size: 19px; font-weight: 700; line-height: 1.55; margin-bottom: 16px; }
.w-step p { font-size: 14.5px; line-height: 1.95; color: var(--tf-mute); margin: 0; }
.w-badge { display: inline-block; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--tf-dark); }
.w-badge.gray { background: #7a818d; }
.w-badge.orange { background: var(--tf-orange); color: var(--tf-dark); }

/* ---------- Feature cards ---------- */
.w-feature {
    background: #fff; border: 1px solid var(--tf-line); height: 100%;
    padding: 36px 30px 32px; position: relative; transition: transform .3s, box-shadow .3s;
}
.w-feature:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(21,23,28,.09); }
.w-feature .no { position: absolute; top: 18px; right: 22px; font-size: 36px; font-weight: 700; color: var(--tf-line); line-height: 1; }
.w-feature i { font-size: 28px; color: var(--tf-orange); margin-bottom: 20px; display: block; }
.w-feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.w-feature p { font-size: 14.5px; line-height: 1.9; color: var(--tf-mute); margin: 0; }

/* ---------- Client logos ---------- */
.w-logos {
    list-style: none; margin: 48px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--tf-line); border-left: 1px solid var(--tf-line);
}
.w-logos li {
    display: flex; align-items: center; justify-content: center; height: 120px; padding: 18px 22px;
    border-right: 1px solid var(--tf-line); border-bottom: 1px solid var(--tf-line);
    background: var(--ui-logo-bg, #fff);
}
.w-logos img { display: block; width: auto; max-width: 80%; max-height: 50px; object-fit: contain; }
.w-logos .ui-logo-deagostini img { max-height: 44px; }
.w-logos .ui-logo-ihi img, .w-logos .ui-logo-utokyo img { max-height: 62px; }
@media (max-width: 991px) { .w-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .w-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .w-logos li { height: 96px; padding: 12px 14px; } }

/* ---------- Dark CTA band ---------- */
.w-cta { background: var(--tf-dark); color: #fff; }
.w-cta .w-eyebrow { color: var(--tf-orange); }
.w-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.6; margin: 0 0 18px; }
.w-cta p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 2; margin: 0; }
.w-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }

/* ---------- Page head (sub pages) ---------- */
.w-pagehead { position: relative; background: var(--tf-dark) url(../images/product/storage.jpg) center / cover no-repeat; color: #fff; padding: 170px 0 80px; }
.w-pagehead::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,15,19,.94) 0%, rgba(13,15,19,.8) 60%, rgba(13,15,19,.6) 100%); }
.w-pagehead .container { position: relative; }
.w-pagehead .w-eyebrow { color: var(--tf-orange); }
.w-pagehead h1 { color: #fff; font-size: clamp(26px, 3.6vw, 42px); font-weight: 700; margin: 0; }
.w-pagehead .w-title-bar { margin-bottom: 26px; }
.w-crumbs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; letter-spacing: .06em; }
.w-crumbs li { color: rgba(255,255,255,.6); }
.w-crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.35); }
.w-crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.w-crumbs a:hover { color: var(--tf-orange); }
.w-crumbs [aria-current] { color: #fff; }
@media (max-width: 767px) { .w-pagehead { padding: 130px 0 56px; } }

/* ---------- Footer ---------- */
.w-footer { background: var(--tf-darker); color: rgba(255,255,255,.7); font-size: 13.5px; }
.w-footer-main { padding: 72px 0 48px; }
.w-footer .w-footer-logo { height: 30px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.w-footer p { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.9; margin: 0; }
.w-footer h4 { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 16px; }
.w-footer ul { list-style: none; padding: 0; margin: 0; }
.w-footer li { margin-bottom: 10px; }
.w-footer a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s; }
.w-footer a:hover { color: var(--tf-orange); }
.w-footer-copy { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 12px; color: rgba(255,255,255,.45); text-align: center; }
@media (max-width: 991px) { .w-footer-main .col-lg-4 { margin-bottom: 36px; } }

/* ---------- Sub page content: retune shared ui-* components to the flat style ---------- */
.ui-modern-table {
    border-radius: 0; box-shadow: none;
    border-top: 2px solid var(--tf-dark) !important;
    border-right: 0 !important; border-left: 0 !important;
    border-bottom: 1px solid var(--tf-line) !important;
}
.ui-modern-table th, .ui-modern-table td { border-bottom-color: var(--tf-line) !important; }
.ui-modern-table th { background: var(--tf-bg); color: var(--tf-dark); }
.ui-modern-table thead th:first-child, .ui-modern-table tr:first-child th:first-child,
.ui-modern-table thead th:last-child, .ui-modern-table tr:first-child th:last-child { border-radius: 0; }
.ui-modern-table td:first-child:not([colspan]) {
    background: transparent; color: var(--tf-dark);
    border-right: 1px solid var(--tf-line) !important;
}
.ui-modern-table img, .ui-modern-table video { border-radius: 0; box-shadow: none; border-color: var(--tf-line); }
.ui-modern-list li::before, .ui-modern-table ul li::before {
    width: 8px; height: 2px; border-radius: 0; box-shadow: none; background: var(--tf-orange); top: .9em;
}
.ui-modern-list ul li::before, .ui-modern-table ul ul li::before, .ui-modern-table ol ul li::before {
    width: 6px; height: 2px; box-shadow: none; background: #c9ccd2;
}
ol.ui-modern-list > li::before, .ui-modern-table ol > li::before {
    border-radius: 0; background: var(--tf-dark); box-shadow: none; color: #fff;
}
.tf-functions-page .sidebar .ui-modern-list li::before, #page-content .sidebar .ui-modern-list li::before {
    width: 8px; height: 2px; box-shadow: none; margin-top: .8em;
}
.tf-functions-page .ui-table-scroll { scrollbar-color: var(--tf-orange) rgba(21,23,28,.08); }
.tf-functions-page .ui-table-scroll::-webkit-scrollbar-thumb { background: var(--tf-orange); border-radius: 0; }

/* Template buttons kept inside page content / modals */
.btn-warning { background: var(--tf-orange); border-color: var(--tf-orange); color: var(--tf-dark); border-radius: 0; font-weight: 700; letter-spacing: .06em; }
.btn-warning:hover, .btn-warning:focus { background: var(--tf-orange-hover); border-color: var(--tf-orange-hover); color: var(--tf-dark); }

/* Content headings inside sub pages */
#page-content h3, .w-content h3 { font-weight: 700; color: var(--tf-dark); padding-left: 14px; border-left: 3px solid var(--tf-orange); line-height: 1.5; }
#page-content .content a:not(.btn), .w-content a:not(.btn):not(.w-btn) { color: var(--tf-orange-text); }
#page-content .content a:not(.btn):hover, .w-content a:not(.btn):not(.w-btn):hover { color: var(--tf-dark); }

/* Anchor jumps must not hide the target under the fixed header */
section[id], h3[id], [id^="section-"] { scroll-margin-top: 90px; }
