/* Site-wide refinement for legacy theme pages */
:root {
    --c-primary: #0759e6;
    --c-primary-dark: #073fbd;
    --c-primary-light: #0bc0cf;
    --c-secondary: #07162f;
    --c-gray-light: #f3f6fa;
    --c-text: #172238;
    --c-text-light: #5d687a;
    --font-family-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-display: 'Manrope', 'Noto Sans JP', sans-serif;
}

.main { color: #172238; background: #fff; }
.main .container { width: min(1200px, calc(100% - 64px)); max-width: none; padding-inline: 0; }

/* Consistent page title */
.about-hero,
.works-hero { width: 100%; height: 460px; min-height: 0; left: auto; margin: 88px 0 0; justify-content: flex-start; background: #f3f6fa; }
.about-hero::after,
.works-hero::after { content: ''; position: absolute; inset: 0 0 0 50%; opacity: .55; background-image: linear-gradient(rgba(7,89,230,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(7,89,230,.07) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg,transparent,#000); }
.about-hero__gradient,
.works-hero__gradient { background: radial-gradient(circle at 78% 34%, rgba(11,192,207,.13), transparent 24%), linear-gradient(140deg,#eef5ff,#fff 65%); }
.about-hero__content,
.works-hero__content { width: min(1200px, calc(100% - 64px)); margin: 0 auto; text-align: left; }
.about-hero__title,
.works-hero__title { position: relative; z-index: 2; margin: 0 0 18px; color: #07162f; font-family: Manrope, sans-serif; font-size: clamp(54px, 6vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -.055em; }
.about-hero__subtitle,
.works-hero__subtitle { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; color: #0759e6; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.about-hero__subtitle::before,
.works-hero__subtitle::before { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg,#0bc0cf,#657df4); }

/* About */
.message-section,
.vision-mission-section,
.value-section,
.company-info-section,
.cta-section { padding: 112px 0; }
.message-content { gap: 84px; align-items: start; }
.message-image__wrapper { border-radius: 2px; box-shadow: none; }
.message-title,
.value-main-title,
.section-title { color: #07162f; font-family: var(--font-family-sans); font-weight: 600; letter-spacing: -.035em; }
.message-title { font-size: clamp(34px, 4vw, 50px); }
.message-content-text p { color: #556276; font-size: 15px; line-height: 2; }
.message-signature { border-top: 1px solid #dce4ee; }
.signature-text { color: #0759e6; }
.vision-mission-section { background: #07162f; }
.vm-content { max-width: 1000px; gap: 0; }
.vm-item { max-width: none; padding: 54px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.vm-item:first-child { border-top: 1px solid rgba(255,255,255,.18); }
.vm-content-inner { display: grid; grid-template-columns: 150px 1fr; gap: 36px; text-align: left; }
.vm-label { color: #64dce5; font: 800 12px Manrope, sans-serif; letter-spacing: .16em; }
.vm-body { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.6; }
.vm-description { grid-column: 2; color: #afbdd0; font-size: 15px; line-height: 1.95; }
.vm-description-highlight { color: #70dfe7; font-style: normal; }
.value-intro { text-align: left; }
.value-main-description { color: #5b687b; font-size: 17px; }
.value-items { gap: 1px; border: 1px solid #dce4ee; background: #dce4ee; }
.value-item { min-height: 350px; padding: 38px; text-align: left; border-radius: 0; background: #fff; }
.value-icon { width: 48px; height: 48px; margin: 0 0 60px; border-radius: 2px; background: #0759e6; }
.value-icon svg { width: 24px; height: 24px; }
.value-title { color: #0759e6; font: 700 22px Manrope, sans-serif; }
.value-description { color: #5d687a; line-height: 1.9; }
.company-info-section { background: #f3f6fa; }
.company-info-layout { max-width: 1100px; gap: 16px; }
.info-card { padding: 38px; border: 1px solid #dce4ee; border-radius: 0; box-shadow: none; }
.info-card-title { color: #0759e6; border-bottom: 1px solid #dce4ee; font: 700 18px var(--font-family-sans); }
.business-main p { border-bottom: 1px solid #b9c6d6; }
.business-item { border-radius: 0; background: #f4f7fb; }
.business-icon { display: none; }
.cta-section { background: #07162f; }
.cta-title { font-weight: 600; letter-spacing: -.03em; }
.btn { min-height: 54px; padding: 14px 28px; border-radius: 2px; font-size: 14px; }
.btn-primary { border-color: #fff; color: #07162f; background: #fff; }
.btn-secondary { border-width: 1px; }

/* Brand interactions: shared by the home page, subpages and navigation. */
.cf-button,.nav-link-cta { position:relative; isolation:isolate; overflow:hidden; }
.cf-button::before,.nav-link-cta::before { content:''; position:absolute; z-index:-1; inset:-40% auto -40% -60%; width:45%; pointer-events:none; opacity:0; background:linear-gradient(90deg,transparent,rgba(107,227,239,.24),transparent); transform:skewX(-18deg); }
.header-logo a:focus-visible,.footer-logo:focus-visible,.cf-pillar-card:focus-visible { outline:3px solid #0759e6; outline-offset:5px; }
.nav-link:focus-visible::after { width:100%; }
.footer-nav-list a:focus-visible { color:#7ce6ec; text-decoration:underline; text-underline-offset:5px; }
@media (prefers-reduced-motion:no-preference) {
    html:not(.cf-lite-motion) .brand-symbol { transition:transform .5s cubic-bezier(.16,1,.3,1); }
    html:not(.cf-lite-motion) .header-logo a:focus-visible .brand-symbol,
    html:not(.cf-lite-motion) .footer-logo:focus-visible .brand-symbol { transform:translateY(-2px) rotate(-8deg); }
    html:not(.cf-lite-motion) .cf-button:focus-visible::before,
    html:not(.cf-lite-motion) .nav-link-cta:focus-visible::before { animation:cf-brand-glint .7s ease-out; }
    html:not(.cf-lite-motion) .cf-pillar-card__head > b,
    html:not(.cf-lite-motion) .footer-copyright a > span { display:inline-block; transition:transform .3s ease; }
    html:not(.cf-lite-motion) .cf-pillar-card:focus-visible .cf-pillar-card__head > b { transform:translate(3px,-3px); }
    html:not(.cf-lite-motion) .mobile-menu.is-open .mobile-nav-item { animation:cf-nav-arrive .35s ease-out both; }
    html:not(.cf-lite-motion) .mobile-menu.is-open .mobile-nav-item:nth-child(2) { animation-delay:.04s; }
    html:not(.cf-lite-motion) .mobile-menu.is-open .mobile-nav-item:nth-child(3) { animation-delay:.08s; }
    html:not(.cf-lite-motion) .mobile-menu.is-open .mobile-nav-item:nth-child(4) { animation-delay:.12s; }
    html:not(.cf-lite-motion) .mobile-menu.is-open .mobile-nav-item:nth-child(5) { animation-delay:.16s; }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
    html:not(.cf-lite-motion) .header-logo a:hover .brand-symbol,
    html:not(.cf-lite-motion) .footer-logo:hover .brand-symbol { transform:translateY(-2px) rotate(-8deg); }
    html:not(.cf-lite-motion) .cf-button:hover::before,
    html:not(.cf-lite-motion) .nav-link-cta:hover::before { animation:cf-brand-glint .7s ease-out; }
    html:not(.cf-lite-motion) .cf-pillar-card:hover .cf-pillar-card__head > b { transform:translate(3px,-3px); }
    html:not(.cf-lite-motion) .footer-copyright a:hover > span { transform:translateY(-4px); }
    html:not(.cf-lite-motion) .nav-link > span { display:inline-block; transition:transform .25s ease; }
    html:not(.cf-lite-motion) .nav-link:hover > span { transform:translateY(-2px); }
}
@media (pointer:coarse) and (prefers-reduced-motion:no-preference) {
    html:not(.cf-lite-motion) .cf-button:active,
    html:not(.cf-lite-motion) .cf-pillar-card:active { transform:scale(.99); }
}
@keyframes cf-brand-glint { 0% { opacity:0; transform:translateX(0) skewX(-18deg); } 25% { opacity:1; } 100% { opacity:0; transform:translateX(420%) skewX(-18deg); } }
@keyframes cf-nav-arrive { from { opacity:.5; transform:translateX(-10px); } to { opacity:1; transform:translateX(0); } }

/* Works */
.WorkGrid { max-width: 1200px; padding: 96px 32px 112px; gap: 56px 28px; }
.WorkCard { border-radius: 0; }
.WorkCard-mediaBlock { height: auto; aspect-ratio: 1.45; background-color: #e9eef5; }
.WorkCard-mediaBlock--blue,
.WorkCard-mediaBlock--violet,
.WorkCard-mediaBlock--cyan { position: relative; display: flex; align-items: flex-end; padding: 30px; color: #fff; background-image: linear-gradient(145deg,#12336d,#227cf0); }
.WorkCard-mediaBlock--violet { background-image: linear-gradient(145deg,#343a8d,#846be5); }
.WorkCard-mediaBlock--cyan { background-image: linear-gradient(145deg,#006c83,#12bdc7); }
.WorkCard-mediaBlock--blue::before,
.WorkCard-mediaBlock--violet::before,
.WorkCard-mediaBlock--cyan::before { content: ''; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.14) 1px,transparent 1px); background-size: 34px 34px; }
.WorkCard-mediaBlock span { position: relative; z-index: 1; font: 700 28px/1.06 Manrope,sans-serif; letter-spacing: -.04em; }
.WorkCard-mediaBlock i { position: absolute; z-index: 1; top: 22px; right: 22px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; font: normal 10px Manrope,sans-serif; }
.WorkCard-textBlock { padding-top: 20px; }
.WorkCard-expertise { color: #0759e6; font: 800 9px Manrope, sans-serif; letter-spacing: .12em; }
.WorkCard-title { color: #07162f; font-size: 19px; font-weight: 600; }
.WorkCard-subtitle { color: #687588; font-size: 13px; line-height: 1.8; }
.work-no-posts { margin: 0; border: 1px solid #dce4ee; border-radius: 0; background: #f4f7fb; }

/* Contact */
.contact-form-section { padding: 112px 0; background: #fff; }
.contact-form-wrapper { max-width: 920px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.contact-form-header { padding: 0 0 48px; text-align: left; border-bottom: 1px solid #dce4ee; background: transparent; }
.contact-form-title { margin-bottom: 18px; color: #07162f; font-size: clamp(34px,4vw,50px); font-weight: 600; letter-spacing: -.04em; }
.contact-form-description { color: #5d687a; font-size: 15px; line-height: 1.9; }
.contact-form-body { padding-top: 44px; }
.contact-container { max-width: none; padding: 42px; background: #f3f6fa; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select,
input.wpcf7-form-control.wpcf7-text,
textarea.wpcf7-form-control.wpcf7-textarea { min-height: 50px; border: 1px solid #c7d2df; border-radius: 2px; }
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus { border-color: #0759e6; box-shadow: 0 0 0 3px rgba(7,89,230,.1); }
.wpcf7-form input[type="submit"], .wpcf7-submit, input.sub-btn { min-height: 54px; border-radius: 2px; background: #07162f; box-shadow: none; }
.contact-form-section + .company-info-section { padding: 96px 0; background: #f3f6fa; }
.company-info-content { max-width: 1200px; padding: 0; }
.company-info-header { text-align: left; }
.company-info-card { padding: 32px; border: 1px solid #dce4ee; border-radius: 0; box-shadow: none; }
.company-info-icon { border-radius: 2px; background: #0759e6; }

@media (max-width: 760px) {
    .main .container { width: calc(100% - 32px); }
    .about-hero, .works-hero { height: 340px; margin-top: 76px; }
    .about-hero__content, .works-hero__content { width: calc(100% - 32px); }
    .about-hero__title, .works-hero__title { font-size: clamp(45px,14vw,62px); }
    .message-section, .vision-mission-section, .value-section, .company-info-section, .cta-section, .contact-form-section { padding: 76px 0; }
    .message-content { grid-template-columns: 1fr; gap: 44px; }
    .vm-content-inner { grid-template-columns: 1fr; gap: 18px; }
    .vm-description { grid-column: 1; }
    .value-items, .company-info-layout { grid-template-columns: 1fr; }
    .info-card-wide { grid-column: auto; }
    .value-item { min-height: 300px; padding: 30px 24px; }
    .business-items { grid-template-columns: 1fr; }
    .WorkGrid { grid-template-columns: 1fr; padding: 72px 16px; }
    .contact-container { padding: 28px 18px; }
    .company-info-content { padding: 0 16px; }
}
