/* Baybits site styles (ported from the Willed site) */
:root {
    --bb-navy: #102238;      /* deep navy from the illustrations */
    --bb-blue: #0b7f8c;      /* teal accent from the hero image (readable on white) */
    --bb-teal-light: #5fd0da;/* teal for text on dark backgrounds */
    --bb-ink: #17212f;
    --bb-mute: #637083;
    --bb-line: #e1e6ec;
    --bb-bg: #f4f7f9;
}

html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, li, th, td, a, input, textarea, button {
    font-family: "Noto Sans JP", "Poppins", "Hiragino Sans", "Yu Gothic", sans-serif;
}
body { color: var(--bb-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 { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 var(--bb-line); }
.w-topbar img { height: 34px; width: auto; filter: brightness(0) invert(1); transition: filter .3s; }
.w-topbar.is-solid img { filter: none; }
.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(--bb-ink); }
.w-topbar nav a:hover { color: var(--bb-blue); }
@media (max-width: 991px) {
    .w-topbar { padding: 12px 16px; }
    .w-topbar nav { display: none; }
}

/* Hero */
/* The subject (the glass marble) sits in the middle of the image, so keep it centered. */
.w-hero { position: relative; background: var(--bb-navy) url(../images/about/tama.jpg) center / cover no-repeat; }
.w-hero.fullscreen { min-height: clamp(520px, 72vh, 860px); }
.w-hero::before {
    content: ""; position: absolute; inset: 0;
    /* darker on the left for the text */
    background: linear-gradient(90deg, rgba(6,14,26,.72) 0%, rgba(6,14,26,.4) 55%, rgba(6,14,26,.15) 100%);
}
@media (max-width: 767px) {
    .w-hero { background-position: center; }
    /* keep the text area dark */
    .w-hero::before { background: linear-gradient(180deg, rgba(5,11,30,.72) 0%, rgba(5,11,30,.62) 52%, rgba(5,11,30,.12) 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 h1 { font-weight: 700; font-size: clamp(22px, 3.8vw, 56px); line-height: 1.25; letter-spacing: .02em; }
.w-hero p { font-size: clamp(14px, 1.6vw, 18px); color: rgba(255,255,255,.85); letter-spacing: .06em; }
.w-hero .w-scroll { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: rgba(255,255,255,.6); }

/* Section heading */
.w-eyebrow {
    display: block; font-size: 12px; font-weight: 600; letter-spacing: .3em;
    color: var(--bb-blue); text-transform: uppercase; margin-bottom: 10px;
}
.w-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin-bottom: 0; }
.w-title-bar { width: 44px; height: 3px; background: var(--bb-blue); margin: 22px 0 0; }
.w-section { padding: 110px 0; }
.w-section.alt { background: var(--bb-bg); }

/* Service */
.w-service {
    background: #fff; border: 1px solid var(--bb-line); height: 100%;
    padding: 44px 34px; position: relative; transition: transform .3s, box-shadow .3s;
}
.w-service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16,29,62,.1); }
.w-service .no { position: absolute; top: 18px; right: 24px; font-size: 44px; font-weight: 700; color: var(--bb-line); line-height: 1; }
.w-service i { font-size: 30px; color: var(--bb-blue); margin-bottom: 22px; display: block; }
.w-service h3 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.w-service ul { list-style: none; padding: 0; margin: 0; }
.w-service li { padding: 9px 0 9px 18px; border-top: 1px solid var(--bb-line); position: relative; font-size: 14.5px; }
.w-service li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 2px; background: var(--bb-blue); }

/* Tables */
.w-table { width: 100%; border-top: 2px solid var(--bb-navy); }
.w-table th, .w-table td { padding: 20px 12px; border-bottom: 1px solid var(--bb-line); vertical-align: top; font-size: 15px; line-height: 1.8; }
.w-table th { width: 30%; font-weight: 600; white-space: nowrap; color: var(--bb-navy); }
.w-table td { overflow-wrap: anywhere; }
@media (max-width: 575px) {
    .w-table th, .w-table td { display: block; width: 100%; padding: 6px 4px; overflow-wrap: anywhere; }
    .w-table th { padding-top: 18px; border-bottom: 0; white-space: normal; }
}

/* Policy */
.w-policy { position: relative; background-size: cover; background-position: center; color: #fff; }
.w-policy::before { content: ""; position: absolute; inset: 0; background: rgba(9,16,38,.88); }
.w-policy .container { position: relative; }
.w-policy .w-eyebrow { color: var(--bb-teal-light); }
.w-policy h2 { font-size: clamp(28px, 4.6vw, 54px); font-weight: 700; line-height: 1.5; margin: 0 0 32px; }
.w-policy p { font-size: 16px; line-height: 2.1; max-width: 640px; opacity: .88; }

/* Recruit */
.w-recruit-role { font-size: 28px; font-weight: 700; }
.w-recruit-card { background: #fff; border: 1px solid var(--bb-line); border-top: 3px solid var(--bb-blue); padding: 44px; }
.w-badge { display: inline-block; padding: 4px 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #fff; background: var(--bb-navy); margin-right: 8px; }
.w-badge.blue { background: var(--bb-blue); }
.w-points { list-style: none; padding: 0; margin: 0; }
.w-points li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--bb-line); line-height: 1.8; }
.w-points li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 4px; top: 14px; color: var(--bb-blue); font-size: 14px; }
@media (max-width: 575px) { .w-recruit-card { padding: 28px 20px; } }

/* Access */
.w-map { position: relative; padding-bottom: 62%; height: 0; background: var(--bb-bg); }
.w-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.w-station { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--bb-line); }
.w-station i { color: var(--bb-blue); margin-top: 6px; }
.w-station strong { display: block; }

/* Contact */
.w-contact { background: var(--bb-navy); color: #fff; }
.w-contact .w-eyebrow { color: var(--bb-teal-light); }
.w-contact .form-control {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: #fff;
    border-radius: 0; padding: 14px 16px; height: auto;
}
.w-contact .form-control:focus { border-color: var(--bb-blue); background: rgba(255,255,255,.1); box-shadow: none; }
.w-contact label { font-size: 13px; letter-spacing: .06em; margin-bottom: 6px; opacity: .85; }
.w-contact .btn-send { background: var(--bb-blue); color: #fff; border: 0; padding: 16px 48px; font-weight: 600; letter-spacing: .1em; border-radius: 0; }
.w-contact .btn-send:hover { background: #0f98a6; }

/* Footer */
.w-footer { background: #0a1329; color: rgba(255,255,255,.7); padding: 40px 0; font-size: 13px; }
.w-footer img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 10px; }

/* Dark sections: override template heading/label colors */
.w-policy h2, .w-policy p,
.w-contact h2, .w-contact p, .w-contact label { color: #fff; }
.w-contact p, .w-policy p { color: rgba(255,255,255,.85); }

/* Language switch */
.w-topbar-right { display: flex; align-items: center; }
.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 { border-color: var(--bb-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 { color: var(--bb-ink); }
.w-lang button[aria-pressed="true"],
.w-topbar.is-solid .w-lang button[aria-pressed="true"] { background: var(--bb-blue); color: #fff; }
@media (max-width: 991px) { .w-lang { margin-left: 0; } }

/* Policy documents (CSR / Information Security) */
.w-policy.w-section { padding: 110px 0; }
.w-subtitle { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin: 0; }
.w-lead { font-size: 15px; line-height: 2; color: var(--bb-ink); margin-bottom: 18px; }
.w-panel { background: #fff; border: 1px solid var(--bb-line); border-left: 3px solid var(--bb-blue); padding: 26px 28px; margin-bottom: 22px; }
.w-panel p { font-size: 14.5px; line-height: 1.95; margin-bottom: 14px; }
.w-panel p:last-child { margin-bottom: 0; }
.w-numbered { margin-top: 26px; }
.w-numbered-item { display: flex; gap: 18px; background: #fff; border: 1px solid var(--bb-line); padding: 18px 22px; margin-bottom: 12px; }
.w-numbered-item span { font-size: 22px; font-weight: 700; color: var(--bb-blue); line-height: 1.5; flex: none; }
.w-numbered-item p { font-size: 14.5px; line-height: 1.9; margin: 0; }

/* Contact form extras */
.w-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.w-form-msg { margin: 8px 0 0; padding: 14px 18px; font-size: 14px; }
.w-form-msg.ok { background: rgba(46,160,90,.18); border: 1px solid rgba(46,160,90,.6); }
.w-form-msg.ng { background: rgba(220,70,70,.18); border: 1px solid rgba(220,70,70,.6); }
.w-contact .btn-send:disabled { opacity: .6; cursor: wait; }

/* Turnstile (left) and submit button (right) on one row */
.w-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.w-form-actions .btn-send { margin-left: auto; }
@media (max-width: 575px) {
    .w-form-actions { flex-direction: column; align-items: stretch; }
    .w-form-actions .btn-send { margin-left: 0; width: 100%; }
}

/* Floating notification: keep it below the fixed header (nav / language switch stay clickable) */
/* !important is required here: the notify plugin sets its position as an inline style */
[data-notify="container"] { top: 76px !important; }
@media (max-width: 991px) { [data-notify="container"] { top: 64px !important; } }


/* About: CSR / Security Policy accordions (collapsed by default) */
.w-acc { border-top: 2px solid var(--bb-navy); }
.w-acc-item { border-bottom: 1px solid var(--bb-line); }
.w-acc-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 12px; cursor: pointer; list-style: none; user-select: none;
}
.w-acc-item summary::-webkit-details-marker { display: none; }
.w-acc-item summary::after {
    content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
    border-right: 2px solid var(--bb-blue); border-bottom: 2px solid var(--bb-blue);
    transform: rotate(45deg); transition: transform .25s;
}
.w-acc-item[open] summary::after { transform: rotate(-135deg); }
.w-acc-item summary:hover .w-acc-label > span { color: var(--bb-blue); }
.w-acc-item summary:focus-visible { outline: 2px solid var(--bb-blue); outline-offset: 2px; }
.w-acc-label { display: flex; flex-direction: column; gap: 4px; }
.w-acc-label em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .3em; color: var(--bb-blue); text-transform: uppercase; }
.w-acc-label > span { font-size: 18px; font-weight: 700; color: var(--bb-navy); transition: color .2s; }
.w-acc-body { padding: 4px 12px 32px; }
.w-acc-body .w-lead { text-wrap: pretty; }
.w-acc-body .w-panel, .w-acc-body .w-numbered-item { background: #fff; }
.w-acc-body .w-numbered { margin-top: 24px; }
@media (max-width: 575px) { .w-acc-body { padding: 4px 4px 28px; } .w-acc-item summary { padding: 20px 4px; } }

/* Turnstile must never push past the form's right edge */
#turnstile-box { max-width: 100%; overflow: hidden; }

/* Privacy policy inside the accordion */
.w-doc-h { font-size: 14px; font-weight: 700; color: var(--bb-navy); margin: 22px 0 6px; }
.w-doc-p { font-size: 14.5px; line-height: 1.95; margin: 0; }
.w-consent { font-size: 12.5px; line-height: 1.8; margin: 4px 0 0; color: rgba(255,255,255,.75); }
.w-consent a { color: #fff; text-decoration: underline; }
.w-consent a:hover { color: var(--bb-teal-light); }

/* Anchor jumps must not hide the target under the fixed header */
section[id], details[id] { scroll-margin-top: 80px; }


/* ---------- Baybits additions ---------- */
/* Text wordmark (the site has no logo image) */
.w-wordmark { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .28em; color: #fff; text-decoration: none; transition: color .3s; }
.w-topbar.is-solid .w-wordmark { color: var(--bb-navy); }
.w-wordmark:hover { color: var(--bb-teal-light); }
.w-footer .w-wordmark { display: inline-block; margin-bottom: 10px; font-size: 18px; }
.w-hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .3em; color: var(--bb-teal-light); margin-bottom: 20px; }

/* Lead paragraphs */
.w-body p { font-size: 15.5px; line-height: 2.05; margin-bottom: 18px; }
.w-body p:last-child { margin-bottom: 0; }
.w-illust { width: 100%; height: auto; display: block; }

/* Principles (6 cards) */
.w-service p { font-size: 14.5px; line-height: 1.9; color: var(--bb-mute); margin: 0; }

/* Skill meters */
.w-skill { padding: 22px 0; border-bottom: 1px solid var(--bb-line); }
.w-skill:first-child { border-top: 2px solid var(--bb-navy); }
.w-skill-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.w-skill-head h3 { font-size: 16px; font-weight: 700; margin: 0; }
.w-skill-head span { font-size: 22px; font-weight: 700; color: var(--bb-blue); font-family: "Poppins", sans-serif; }
.w-meter { height: 4px; background: var(--bb-line); position: relative; overflow: hidden; }
.w-meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bb-blue); }
.w-skill p { font-size: 13.5px; color: var(--bb-mute); margin: 10px 0 0; }

/* Insourcing (dark) */
.w-policy { background: var(--bb-navy); }
.w-policy::before { display: none; }
.w-policy .w-body p { max-width: none; }
.w-policy sup { font-size: 10px; opacity: .8; }
.w-policy .w-point { color: #fff; font-weight: 700; opacity: 1; }

/* Contact form (Google Form) */
.w-contact .form-control::placeholder { color: rgba(255,255,255,.45); }
.w-contact .w-form-note { font-size: 12.5px; color: rgba(255,255,255,.7); margin: 14px 0 0; }
.w-contact .w-form-note a { color: #fff; text-decoration: underline; }
.w-contact .w-form-note a:hover { color: var(--bb-teal-light); }

/* Privacy list inside the accordion */
.w-doc-list { margin: 6px 0 0; padding-left: 1.2em; font-size: 14.5px; line-height: 1.9; }
